mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
add ability to set and reset user usage limits
This commit is contained in:
parent
79fff2e762
commit
05e08fb92d
7 changed files with 248 additions and 13 deletions
|
|
@ -12,6 +12,14 @@ class VM_Expiration(Base):
|
|||
expire_date = Column(Date, nullable=False)
|
||||
|
||||
|
||||
class Usage_Limit(Base):
|
||||
__tablename__ = 'usage_limit'
|
||||
id = Column(String(32), primary_key=True)
|
||||
cpu = Column(Integer, nullable=False)
|
||||
mem = Column(Integer, nullable=False)
|
||||
disk = Column(Integer, nullable=False)
|
||||
|
||||
|
||||
engine = create_engine('sqlite:///proxstar.db')
|
||||
|
||||
Base.metadata.create_all(engine)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue