
- Complete authentication system with JWT and role-based access control
- User management for Admin, Teacher, Student, and Parent roles
- Student management with CRUD operations
- Class management and assignment system
- Subject and grade tracking functionality
- Daily attendance marking and viewing
- Notification system for announcements
- SQLite database with Alembic migrations
- Comprehensive API documentation with Swagger/ReDoc
- Proper project structure with services, models, and schemas
- Environment variable configuration
- CORS support and security features
🤖 Generated with BackendIM
Co-Authored-By: BackendIM <noreply@anthropic.com>
27 lines
548 B
Python
27 lines
548 B
Python
from typing import Optional
|
|
from pydantic import BaseModel
|
|
from datetime import datetime
|
|
|
|
class ClassBase(BaseModel):
|
|
name: str
|
|
grade_level: str
|
|
academic_year: str
|
|
|
|
class ClassCreate(ClassBase):
|
|
pass
|
|
|
|
class ClassUpdate(BaseModel):
|
|
name: Optional[str] = None
|
|
grade_level: Optional[str] = None
|
|
academic_year: Optional[str] = None
|
|
|
|
class ClassInDBBase(ClassBase):
|
|
id: int
|
|
created_at: datetime
|
|
updated_at: Optional[datetime] = None
|
|
|
|
class Config:
|
|
orm_mode = True
|
|
|
|
class Class(ClassInDBBase):
|
|
pass |