from sqlalchemy import Column, String, Boolean, DateTime from sqlalchemy.dialects.postgresql import UUID from sqlalchemy.sql import func from core.database import Base import uuid class User(Base): __tablename__ = "users" id = Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4) first_name = Column(String, nullable=False) last_name = Column(String, nullable=False) email = Column(String, unique=True, nullable=False) password = Column(String, nullable=False) is_active = Column(Boolean, default=True) created_at = Column(DateTime, default=func.now()) updated_at = Column(DateTime, default=func.now(), onupdate=func.now())