little of backend

This commit is contained in:
2024-03-24 15:37:01 +03:00
parent ef60d563fa
commit 0edcecd0f5
15 changed files with 140 additions and 16 deletions

13
backend/app/db/models.py Normal file
View File

@ -0,0 +1,13 @@
from sqlalchemy import Boolean, Column, ForeignKey, Integer, String
from sqlalchemy.orm import relationship
from .database import Base
class User(Base):
__tablename__ = "users"
id = Column(Integer, primary_key=True)
email = Column(String, unique=True, index=True)
hashed_password = Column(String)
is_active = Column(Boolean, default=True)