TIMESTAMP(timezone=True) updated
This commit is contained in:
@@ -125,7 +125,7 @@ class DecisionBookBudgets(CrudCollection):
|
||||
__exclude__fields__ = []
|
||||
|
||||
process_date: Mapped[TIMESTAMP] = mapped_column(
|
||||
TIMESTAMP, nullable=False
|
||||
TIMESTAMP(timezone=True), nullable=False
|
||||
) # Başlangıç tarihi
|
||||
budget_codes_id: Mapped[int] = mapped_column(
|
||||
Integer, ForeignKey("decision_book_budget_codes.id"), nullable=False
|
||||
|
||||
@@ -151,10 +151,10 @@ class Build(CrudCollection, SelectActionWithEmployee):
|
||||
SmallInteger, server_default="0", nullable=False, comment="Underground Floor"
|
||||
)
|
||||
build_date: Mapped[TIMESTAMP] = mapped_column(
|
||||
TIMESTAMP, server_default="1900-01-01"
|
||||
TIMESTAMP(timezone=True), server_default="1900-01-01"
|
||||
)
|
||||
decision_period_date: Mapped[TIMESTAMP] = mapped_column(
|
||||
TIMESTAMP,
|
||||
TIMESTAMP(timezone=True),
|
||||
server_default="1900-01-01",
|
||||
comment="Building annual ordinary meeting period",
|
||||
)
|
||||
|
||||
@@ -53,12 +53,12 @@ class BuildDecisionBook(CrudCollection):
|
||||
) #
|
||||
is_out_sourced: Mapped[bool] = mapped_column(Boolean, server_default="0")
|
||||
meeting_date: Mapped[TIMESTAMP] = mapped_column(
|
||||
TIMESTAMP, server_default="1900-01-01"
|
||||
TIMESTAMP(timezone=True), server_default="1900-01-01"
|
||||
)
|
||||
decision_type: Mapped[str] = mapped_column(String(3), server_default="RBM")
|
||||
meeting_is_completed: Mapped[bool] = mapped_column(Boolean, server_default="0")
|
||||
meeting_completed_date: Mapped[TIMESTAMP] = mapped_column(
|
||||
TIMESTAMP, nullable=True, comment="Meeting Completed Date"
|
||||
TIMESTAMP(timezone=True), nullable=True, comment="Meeting Completed Date"
|
||||
)
|
||||
|
||||
build_id: Mapped[int] = mapped_column(ForeignKey("build.id"), nullable=False)
|
||||
@@ -267,10 +267,10 @@ class BuildDecisionBookInvitations(CrudCollection):
|
||||
Text, nullable=True, comment="Invitation Message"
|
||||
)
|
||||
planned_date: Mapped[TIMESTAMP] = mapped_column(
|
||||
TIMESTAMP, nullable=False, comment="Planned Meeting Date"
|
||||
TIMESTAMP(timezone=True), nullable=False, comment="Planned Meeting Date"
|
||||
)
|
||||
planned_date_expires: Mapped[TIMESTAMP] = mapped_column(
|
||||
TIMESTAMP, nullable=False, comment="Planned Meeting Date Expires"
|
||||
TIMESTAMP(timezone=True), nullable=False, comment="Planned Meeting Date Expires"
|
||||
)
|
||||
|
||||
__table_args__ = (
|
||||
@@ -345,16 +345,16 @@ class BuildDecisionBookPerson(CrudCollection):
|
||||
dues_percent_discount: Mapped[int] = mapped_column(SmallInteger, server_default="0")
|
||||
dues_fix_discount: Mapped[float] = mapped_column(Numeric(10, 2), server_default="0")
|
||||
dues_discount_approval_date: Mapped[TIMESTAMP] = mapped_column(
|
||||
TIMESTAMP, server_default="1900-01-01 00:00:00"
|
||||
TIMESTAMP(timezone=True), server_default="1900-01-01 00:00:00"
|
||||
)
|
||||
send_date: Mapped[TIMESTAMP] = mapped_column(
|
||||
TIMESTAMP, nullable=False, comment="Confirmation Date"
|
||||
TIMESTAMP(timezone=True), nullable=False, comment="Confirmation Date"
|
||||
)
|
||||
is_attending: Mapped[bool] = mapped_column(
|
||||
Boolean, server_default="0", comment="Occupant is Attending to invitation"
|
||||
)
|
||||
confirmed_date: Mapped[TIMESTAMP] = mapped_column(
|
||||
TIMESTAMP, nullable=True, comment="Confirmation Date"
|
||||
TIMESTAMP(timezone=True), nullable=True, comment="Confirmation Date"
|
||||
)
|
||||
token: Mapped[str] = mapped_column(
|
||||
String, server_default="", comment="Invitation Token"
|
||||
@@ -844,7 +844,7 @@ class BuildDecisionBookPayments(CrudCollection):
|
||||
String(10), nullable=False, comment="Payment Plan Time Periods"
|
||||
)
|
||||
process_date: Mapped[TIMESTAMP] = mapped_column(
|
||||
TIMESTAMP, nullable=False, comment="Payment Due Date"
|
||||
TIMESTAMP(timezone=True), nullable=False, comment="Payment Due Date"
|
||||
)
|
||||
payment_amount: Mapped[float] = mapped_column(
|
||||
Numeric(16, 2), nullable=False, comment="Payment Amount"
|
||||
@@ -945,17 +945,17 @@ class BuildDecisionBookLegal(CrudCollection):
|
||||
__exclude__fields__ = []
|
||||
|
||||
period_start_date: Mapped[TIMESTAMP] = mapped_column(
|
||||
TIMESTAMP, nullable=False, comment="Start Date of Legal Period"
|
||||
TIMESTAMP(timezone=True), nullable=False, comment="Start Date of Legal Period"
|
||||
)
|
||||
lawsuits_decision_number: Mapped[str] = mapped_column(
|
||||
String, nullable=False, comment="Lawsuits Decision Number"
|
||||
)
|
||||
lawsuits_decision_date: Mapped[TIMESTAMP] = mapped_column(
|
||||
TIMESTAMP, nullable=False, comment="Lawsuits Decision Date"
|
||||
TIMESTAMP(timezone=True), nullable=False, comment="Lawsuits Decision Date"
|
||||
)
|
||||
|
||||
period_stop_date: Mapped[TIMESTAMP] = mapped_column(
|
||||
TIMESTAMP, server_default="2099-12-31 23:59:59"
|
||||
TIMESTAMP(timezone=True), server_default="2099-12-31 23:59:59"
|
||||
)
|
||||
decision_book_pdf_path: Mapped[str] = mapped_column(
|
||||
String, server_default="", nullable=True
|
||||
@@ -967,10 +967,10 @@ class BuildDecisionBookLegal(CrudCollection):
|
||||
String, server_default="", nullable=True
|
||||
)
|
||||
contact_agreement_date: Mapped[TIMESTAMP] = mapped_column(
|
||||
TIMESTAMP, server_default="1900-01-01 00:00:00", nullable=True
|
||||
TIMESTAMP(timezone=True), server_default="1900-01-01 00:00:00", nullable=True
|
||||
)
|
||||
meeting_date: Mapped[str] = mapped_column(
|
||||
TIMESTAMP, server_default="1900-01-01 00:00:00"
|
||||
TIMESTAMP(timezone=True), server_default="1900-01-01 00:00:00"
|
||||
)
|
||||
lawsuits_type: Mapped[str] = mapped_column(String(1), server_default="C")
|
||||
lawsuits_name: Mapped[str] = mapped_column(String(128))
|
||||
@@ -1027,10 +1027,10 @@ class BuildDecisionBookProjects(CrudCollection):
|
||||
String, nullable=False, comment="Project Name"
|
||||
)
|
||||
project_start_date: Mapped[TIMESTAMP] = mapped_column(
|
||||
TIMESTAMP, nullable=False, comment="Project Start Date"
|
||||
TIMESTAMP(timezone=True), nullable=False, comment="Project Start Date"
|
||||
)
|
||||
project_stop_date: Mapped[TIMESTAMP] = mapped_column(
|
||||
TIMESTAMP, server_default="2099-12-31 23:59:59"
|
||||
TIMESTAMP(timezone=True), server_default="2099-12-31 23:59:59"
|
||||
)
|
||||
project_type: Mapped[str] = mapped_column(String, server_default="C")
|
||||
project_note: Mapped[str] = mapped_column(Text)
|
||||
@@ -1048,7 +1048,7 @@ class BuildDecisionBookProjects(CrudCollection):
|
||||
is_out_sourced: Mapped[bool] = mapped_column(Boolean, server_default="0")
|
||||
|
||||
meeting_date: Mapped[TIMESTAMP] = mapped_column(
|
||||
TIMESTAMP, server_default="1900-01-01 00:00:00", index=True
|
||||
TIMESTAMP(timezone=True), server_default="1900-01-01 00:00:00", index=True
|
||||
)
|
||||
currency: Mapped[str] = mapped_column(String(8), server_default="TRY")
|
||||
bid_price: Mapped[float] = mapped_column(Numeric(16, 4), server_default="0")
|
||||
|
||||
Reference in New Issue
Block a user