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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user