| 26 | |
| 27 | |
| 28 | class Course(ormar.Model): |
| 29 | ormar_config = ormar_base_config.copy() |
| 30 | |
| 31 | id: int = ormar.Integer(primary_key=True) |
| 32 | name: str = ormar.String(max_length=100) |
| 33 | completed: bool = ormar.Boolean(default=False) |
| 34 | department: Optional[Department] = ormar.ForeignKey(Department) |
| 35 | |
| 36 | |
| 37 | @create_drop_database(base_config=ormar_base_config) |