fix test sqlite iso issue on date
This commit is contained in:
@@ -59,8 +59,10 @@ class Customer(Base):
|
|||||||
email: Mapped[str] = mapped_column(String(20))
|
email: Mapped[str] = mapped_column(String(20))
|
||||||
phone: Mapped[int] = mapped_column(Integer)
|
phone: Mapped[int] = mapped_column(Integer)
|
||||||
company: Mapped[str] = mapped_column(String(40))
|
company: Mapped[str] = mapped_column(String(40))
|
||||||
creation_date: Mapped[date] = mapped_column(Date,
|
creation_date: Mapped[date] = mapped_column(DateTime,
|
||||||
server_default=func.now())
|
default=datetime.now())
|
||||||
|
# creation_date: Mapped[date] = mapped_column(Date,
|
||||||
|
# server_default=func.now())
|
||||||
last_update: Mapped[Optional[datetime]] = mapped_column(DateTime)
|
last_update: Mapped[Optional[datetime]] = mapped_column(DateTime)
|
||||||
commercial_id: Mapped[Optional[int]] = mapped_column(
|
commercial_id: Mapped[Optional[int]] = mapped_column(
|
||||||
ForeignKey("collaborator.id"))
|
ForeignKey("collaborator.id"))
|
||||||
@@ -82,6 +84,8 @@ class Contract(Base):
|
|||||||
|
|
||||||
id: Mapped[int] = mapped_column(primary_key=True)
|
id: Mapped[int] = mapped_column(primary_key=True)
|
||||||
signed: Mapped[bool] = mapped_column(Boolean, default=False)
|
signed: Mapped[bool] = mapped_column(Boolean, default=False)
|
||||||
|
# creation_date: Mapped[date] = mapped_column(Date,
|
||||||
|
# server_default=func.now())
|
||||||
creation_date: Mapped[date] = mapped_column(Date,
|
creation_date: Mapped[date] = mapped_column(Date,
|
||||||
server_default=func.now())
|
server_default=func.now())
|
||||||
amount: Mapped[int] = mapped_column(Integer)
|
amount: Mapped[int] = mapped_column(Integer)
|
||||||
|
|||||||
Reference in New Issue
Block a user