separation of production and development

environments
Adding new migrations for renaming and adding fields
to the database schema
persistent uuid for simclient
This commit is contained in:
2025-07-16 08:50:42 +00:00
parent 84a92ab9c2
commit 1a6faaa104
7 changed files with 116 additions and 12 deletions

View File

@@ -30,6 +30,7 @@ class ClientGroup(Base):
__tablename__ = 'client_groups'
id = Column(Integer, primary_key=True, autoincrement=True)
name = Column(String(100), unique=True, nullable=False)
description = Column(String(255), nullable=True) # Manuell zu setzen
created_at = Column(TIMESTAMP(timezone=True),
server_default=func.current_timestamp())
is_active = Column(Boolean, default=True, nullable=False)
@@ -46,6 +47,7 @@ class Client(Base):
software_version = Column(String(100), nullable=True)
macs = Column(String(255), nullable=True)
model = Column(String(100), nullable=True)
description = Column(String(255), nullable=True) # Manuell zu setzen
registration_time = Column(TIMESTAMP(
timezone=True), server_default=func.current_timestamp(), nullable=False)
last_alive = Column(TIMESTAMP(timezone=True), server_default=func.current_timestamp(