11 lines
461 B
Python
11 lines
461 B
Python
# app/api/v1/models/user.py
|
|
from sqlalchemy import Column, Integer, String, Boolean
|
|
from app.api.db.database import Base
|
|
class User(Base):
|
|
__tablename__ = "users"
|
|
id = Column(Integer, primary_key=True, index=True)
|
|
username = Column(String, unique=True, index=True)
|
|
email = Column(String, unique=True, index=True)
|
|
hashed_password = Column(String)
|
|
is_active = Column(Boolean, default=True)
|
|
is_superuser = Column(Boolean, default=False) |