CLIO v1.0 — Scanner Inteligente com IA (MVP)
This commit is contained in:
13
backend/app/models/user.py
Normal file
13
backend/app/models/user.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from sqlalchemy import Column, Integer, String, DateTime
|
||||
from datetime import datetime, timezone
|
||||
from app.database import Base
|
||||
|
||||
class User(Base):
|
||||
__tablename__ = "users"
|
||||
id = Column(Integer, primary_key=True, index=True)
|
||||
email = Column(String(255), unique=True, index=True, nullable=False)
|
||||
name = Column(String(200), nullable=True)
|
||||
password_hash = Column(String(255), nullable=False)
|
||||
plan = Column(String(20), default="free")
|
||||
scan_count_today = Column(Integer, default=0)
|
||||
created_at = Column(DateTime(timezone=True), default=lambda: datetime.now(timezone.utc))
|
||||
Reference in New Issue
Block a user