Set up basic user user endpoints

This commit is contained in:
2026-04-12 23:11:34 +02:00
parent 363f642bff
commit aa8247a083
5 changed files with 93 additions and 4 deletions

13
models.py Normal file
View File

@@ -0,0 +1,13 @@
from sqlalchemy import Column, Integer, String, Boolean
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class User(Base):
__tablename__ = "users"
id = Column(Integer, primary_key=True, index=True)
name = Column(String, index=True)
email = Column(String, nullable=True)
password = Column(String)
is_admin = Column(Boolean, default=False)