auth service up running
This commit is contained in:
@@ -1,24 +1,30 @@
|
||||
from datetime import datetime
|
||||
from typing import Optional, List, Union
|
||||
|
||||
from sqlalchemy.orm import mapped_column, Mapped
|
||||
from sqlalchemy import (
|
||||
String,
|
||||
Integer,
|
||||
Boolean,
|
||||
ForeignKey,
|
||||
Index,
|
||||
SmallInteger,
|
||||
Boolean,
|
||||
TIMESTAMP,
|
||||
func,
|
||||
Text,
|
||||
BigInteger,
|
||||
Numeric,
|
||||
UUID,
|
||||
SmallInteger,
|
||||
)
|
||||
|
||||
from databases.sql_models.core_mixin import CrudCollection
|
||||
from databases.language_models import (
|
||||
from databases.language_models.account.account import (
|
||||
AccountBooksLanguageModel,
|
||||
AccountDetailLanguageModel,
|
||||
AccountMasterLanguageModel,
|
||||
AccountRecordExchangesLanguageModel,
|
||||
AccountCodesLanguageModel,
|
||||
AccountRecordsLanguageModel,
|
||||
AccountRecordExchangesLanguageModel,
|
||||
AccountDetailLanguageModel,
|
||||
AccountCodeParserLanguageModel,
|
||||
AccountMasterLanguageModel,
|
||||
)
|
||||
|
||||
|
||||
@@ -29,7 +35,7 @@ class AccountBooks(CrudCollection):
|
||||
__language_model__ = AccountBooksLanguageModel
|
||||
|
||||
country: Mapped[str] = mapped_column(String, nullable=False)
|
||||
branch_type: Mapped[str] = mapped_column(SmallInteger, server_default="0")
|
||||
branch_type: Mapped[int] = mapped_column(SmallInteger, server_default="0")
|
||||
|
||||
company_id: Mapped[int] = mapped_column(ForeignKey("companies.id"), nullable=False)
|
||||
company_uu_id: Mapped[str] = mapped_column(String, nullable=False)
|
||||
@@ -79,7 +85,7 @@ class AccountCodes(CrudCollection):
|
||||
account_code_seperator: Mapped[str] = mapped_column(String(1), server_default=".")
|
||||
|
||||
system_id: Mapped[int] = mapped_column(SmallInteger, server_default="0")
|
||||
locked: Mapped[bool] = mapped_column(SmallInteger, server_default="0")
|
||||
locked: Mapped[int] = mapped_column(SmallInteger, server_default="0")
|
||||
|
||||
company_id: Mapped[int] = mapped_column(ForeignKey("companies.id"))
|
||||
company_uu_id: Mapped[str] = mapped_column(
|
||||
@@ -120,7 +126,7 @@ class AccountCodeParser(CrudCollection):
|
||||
|
||||
__tablename__ = "account_code_parser"
|
||||
__exclude__fields__ = []
|
||||
__language_model__ = AccountCodeParserLanguageModel
|
||||
__language_model__ = AccountCodesLanguageModel
|
||||
|
||||
account_code_1: Mapped[str] = mapped_column(String, nullable=False, comment="Order")
|
||||
account_code_2: Mapped[str] = mapped_column(String, nullable=False, comment="Order")
|
||||
@@ -297,7 +303,7 @@ class AccountDetail(CrudCollection):
|
||||
canceled: Mapped[int] = mapped_column(SmallInteger, server_default="0")
|
||||
cross_ref: Mapped[int] = mapped_column(Integer, server_default="0")
|
||||
data_center_id: Mapped[str] = mapped_column(String, server_default="")
|
||||
data_center_rec_num: Mapped[str] = mapped_column(Integer, server_default="0")
|
||||
data_center_rec_num: Mapped[int] = mapped_column(Integer, server_default="0")
|
||||
status_id: Mapped[int] = mapped_column(SmallInteger, server_default="0")
|
||||
|
||||
plug_type_id: Mapped[int] = mapped_column(
|
||||
@@ -728,7 +734,6 @@ class AccountRecords(CrudCollection):
|
||||
# ),
|
||||
# {"comment": "Account Record Decision Payment Closed Information"},
|
||||
# )
|
||||
#
|
||||
|
||||
|
||||
class AccountRecordExchanges(CrudCollection):
|
||||
|
||||
Reference in New Issue
Block a user