feat: add first_name/last_name to users, avatar in header, neutral dashboard bg
This commit is contained in:
@@ -32,6 +32,8 @@ class User(Base):
|
||||
expires_at: Mapped[dt.datetime] = mapped_column(DateTime(timezone=True), index=True)
|
||||
active: Mapped[bool] = mapped_column(Boolean, default=True, index=True)
|
||||
is_admin: Mapped[bool] = mapped_column(Boolean, default=False)
|
||||
first_name: Mapped[str] = mapped_column(String(64), default="")
|
||||
last_name: Mapped[str] = mapped_column(String(64), default="")
|
||||
created_at: Mapped[dt.datetime] = mapped_column(DateTime(timezone=True), default=lambda: dt.datetime.now(dt.timezone.utc))
|
||||
|
||||
|
||||
@@ -50,6 +52,8 @@ class Service(Base):
|
||||
icon_path: Mapped[str] = mapped_column(Text, default="")
|
||||
active: Mapped[bool] = mapped_column(Boolean, default=True)
|
||||
warm_pool_size: Mapped[int] = mapped_column(Integer, default=0)
|
||||
first_name: Mapped[str] = mapped_column(String(64), default="")
|
||||
last_name: Mapped[str] = mapped_column(String(64), default="")
|
||||
created_at: Mapped[dt.datetime] = mapped_column(DateTime(timezone=True), default=lambda: dt.datetime.now(dt.timezone.utc))
|
||||
|
||||
|
||||
@@ -59,6 +63,8 @@ class Category(Base):
|
||||
id: Mapped[int] = mapped_column(Integer, primary_key=True)
|
||||
name: Mapped[str] = mapped_column(String(128), unique=True, index=True)
|
||||
slug: Mapped[str] = mapped_column(String(64), unique=True, index=True)
|
||||
first_name: Mapped[str] = mapped_column(String(64), default="")
|
||||
last_name: Mapped[str] = mapped_column(String(64), default="")
|
||||
created_at: Mapped[dt.datetime] = mapped_column(DateTime(timezone=True), default=lambda: dt.datetime.now(dt.timezone.utc))
|
||||
|
||||
|
||||
@@ -69,6 +75,8 @@ class ServiceCategory(Base):
|
||||
id: Mapped[int] = mapped_column(Integer, primary_key=True)
|
||||
service_id: Mapped[int] = mapped_column(ForeignKey("services.id", ondelete="CASCADE"), index=True)
|
||||
category_id: Mapped[int] = mapped_column(ForeignKey("categories.id", ondelete="CASCADE"), index=True)
|
||||
first_name: Mapped[str] = mapped_column(String(64), default="")
|
||||
last_name: Mapped[str] = mapped_column(String(64), default="")
|
||||
created_at: Mapped[dt.datetime] = mapped_column(DateTime(timezone=True), default=lambda: dt.datetime.now(dt.timezone.utc))
|
||||
|
||||
|
||||
@@ -90,6 +98,8 @@ class RdpSlot(Base):
|
||||
rdp_username: Mapped[str] = mapped_column(String(128))
|
||||
rdp_password: Mapped[str] = mapped_column(String(256), default="")
|
||||
container_name: Mapped[Optional[str]] = mapped_column(String(128), nullable=True)
|
||||
first_name: Mapped[str] = mapped_column(String(64), default="")
|
||||
last_name: Mapped[str] = mapped_column(String(64), default="")
|
||||
created_at: Mapped[dt.datetime] = mapped_column(DateTime(timezone=True), default=lambda: dt.datetime.now(dt.timezone.utc))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user