CARONTE v1.0 - Plataforma de Gestão Social
This commit is contained in:
12
backend/app/models/usuario.py
Normal file
12
backend/app/models/usuario.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from sqlalchemy import Column, Integer, String, DateTime
|
||||
from sqlalchemy.sql import func
|
||||
from app.core.database import Base
|
||||
|
||||
class Usuario(Base):
|
||||
__tablename__ = "usuarios"
|
||||
id = Column(Integer, primary_key=True, autoincrement=True)
|
||||
nome = Column(String, nullable=False)
|
||||
email = Column(String, unique=True, nullable=False)
|
||||
senha_hash = Column(String, nullable=False)
|
||||
telefone = Column(String, nullable=True)
|
||||
created_at = Column(DateTime, server_default=func.now())
|
||||
Reference in New Issue
Block a user