14 lines
444 B
Python
14 lines
444 B
Python
from sqlalchemy import Boolean, Column, Integer, String
|
|
from app.db.session import Base
|
|
|
|
class User(Base):
|
|
__tablename__ = "users"
|
|
|
|
id = Column(Integer, primary_key=True, index=True)
|
|
email = Column(String, unique=True, index=True)
|
|
hashed_password = Column(String)
|
|
full_name = Column(String)
|
|
graduation_year = Column(Integer)
|
|
is_verified = Column(Boolean, default=False)
|
|
is_active = Column(Boolean, default=True)
|