mirror of
https://github.com/rommapp/romm.git
synced 2026-12-02 18:18:47 +01:00
12 lines
442 B
Python
12 lines
442 B
Python
from sqlalchemy import Column, String, Boolean, Integer
|
|
from starlette.authentication import SimpleUser
|
|
from .base import BaseModel
|
|
|
|
class User(SimpleUser, 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)
|
|
|