| 18 | |
| 19 | |
| 20 | class ToDo(ormar.Model): |
| 21 | ormar_config = ormar_base_config.copy(tablename="todos") |
| 22 | |
| 23 | id: int = ormar.Integer(primary_key=True) |
| 24 | text: str = ormar.String(max_length=500) |
| 25 | completed = ormar.Boolean(default=False) |
| 26 | |
| 27 | |
| 28 | @create_drop_database(base_config=ormar_base_config) |