feat: add motor_vehicle_id to WorkEntry with auto-migration
This commit is contained in:
@@ -10,6 +10,7 @@ class WorkEntry(db.Model):
|
||||
id: so.Mapped[int] = so.mapped_column(primary_key=True)
|
||||
date: so.Mapped[date] = so.mapped_column(sa.Date, unique=True, nullable=False)
|
||||
journey_profile_id: so.Mapped[str | None] = so.mapped_column(sa.String(64), nullable=True)
|
||||
motor_vehicle_id: so.Mapped[str | None] = so.mapped_column(sa.String(64), nullable=True)
|
||||
day_type: so.Mapped[str] = so.mapped_column(sa.String(16), nullable=False, default="WORK")
|
||||
comment: so.Mapped[str | None] = so.mapped_column(sa.Text, nullable=True)
|
||||
created_at: so.Mapped[datetime] = so.mapped_column(sa.DateTime, default=datetime.utcnow)
|
||||
|
||||
Reference in New Issue
Block a user