mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
12 lines
383 B
Python
12 lines
383 B
Python
from sqlalchemy import Column, String, Boolean, Integer
|
|
|
|
from .base import BaseModel
|
|
|
|
class User(BaseModel):
|
|
__tablename__ = "users"
|
|
id = Column(Integer(), primary_key=True, autoincrement=True)
|
|
username: str = Column(String(length=255), unique=True, index=True)
|
|
hashed_password: str = Column(String(length=255))
|
|
disabled: bool = Column(Boolean(), default=False)
|
|
|