| 12345678910111213141516171819202122232425 |
- from pyplanner.database import SQLABase
- from pyplanner.models import Base
- from sqlalchemy import Column, Integer, String, Text
- from pydantic import BaseModel
- class SchemaItem(BaseModel):
- name: str
- description: str
- uuid: str
- class Item(SQLABase, Base):
- _schema = SchemaItem
- __tablename__ = 'items'
- id = Column(Integer, primary_key=True)
- name = Column(String)
- description = Column(Text)
- uuid = Column(String)
- __mapper_args__ = {
- 'with_polymorphic': '*'
- }
|