Fix + Docker
This commit is contained in:
parent
8aa4828239
commit
0e71fe7abe
10 changed files with 92 additions and 35 deletions
|
|
@ -9,10 +9,11 @@ class Server(Base):
|
|||
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
|
||||
name: Mapped[str] = mapped_column(String(64), nullable=False, unique=True)
|
||||
code: Mapped[str] = mapped_column(String(128), nullable=False, unique=True, index=True)
|
||||
host: Mapped[str] = mapped_column(String(128), nullable=False, unique=True)
|
||||
host: Mapped[str] = mapped_column(String(128), nullable=False)
|
||||
port: Mapped[int] = mapped_column(nullable=False)
|
||||
user: Mapped[str] = mapped_column(String(64), nullable=False)
|
||||
password: Mapped[str] = mapped_column(String(64), nullable=False)
|
||||
inbound_id: Mapped[int] = mapped_column(nullable=False)
|
||||
version: Mapped[str] = mapped_column(String(16), nullable=False, default="stable")
|
||||
created_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), server_default=func.now(), nullable=False)
|
||||
deleted_at: Mapped[datetime | None] = mapped_column(DateTime(timezone=True), nullable=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue