9 lines
364 B
Python
9 lines
364 B
Python
from sqlalchemy import Column, Integer, String
|
|
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)
|
|
password = Column(String)
|
|
is_active = Column(Integer, default=1) |