| 25 | |
| 26 | |
| 27 | class Toy(ormar.Model): |
| 28 | ormar_config = ormar_base_config.copy(tablename="toys") |
| 29 | |
| 30 | id: int = ormar.Integer(primary_key=True) |
| 31 | name: str = ormar.String(max_length=100) |
| 32 | owner: Owner = ormar.ForeignKey(Owner) |
| 33 | |
| 34 | |
| 35 | @create_drop_database(base_config=ormar_base_config) |