Initial Commit. Split cloud service from the combined project
This commit is contained in:
11
cloud_backend/models/admin.py
Normal file
11
cloud_backend/models/admin.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from sqlalchemy import Column, Integer, String
|
||||
from database import Base
|
||||
|
||||
|
||||
class Admin(Base):
|
||||
__tablename__ = "admins"
|
||||
|
||||
id = Column(Integer, primary_key=True, index=True)
|
||||
username = Column(String, unique=True, nullable=False)
|
||||
password_hash = Column(String, nullable=False)
|
||||
role = Column(String, default="sysadmin")
|
||||
Reference in New Issue
Block a user