Add backend support for settings
This commit is contained in:
@@ -43,5 +43,14 @@ class Log(Base):
|
||||
script_id = Column(Integer, ForeignKey("scripts.id"), nullable=False)
|
||||
|
||||
|
||||
class Settings(Base):
|
||||
__tablename__ = "user_settings"
|
||||
|
||||
id = Column(Integer, primary_key=True, index=True)
|
||||
requirements = Column(String, nullable=False)
|
||||
environment = Column(String, nullable=False)
|
||||
user = Column(String, nullable=False)
|
||||
|
||||
|
||||
# Create the database tables
|
||||
Base.metadata.create_all(bind=engine)
|
||||
|
||||
Reference in New Issue
Block a user