feat(models): add basic database structure

This commit is contained in:
2025-10-09 14:33:07 +02:00
parent 991c070918
commit 95996d22f8
7 changed files with 129 additions and 1 deletions

View File

@@ -1,7 +1,13 @@
from sqlalchemy import Column, String
from sqlalchemy.orm import relationship
from fastapi_users.db import SQLAlchemyBaseUserTableUUID
from app.core.base import Base
class User(SQLAlchemyBaseUserTableUUID, Base):
first_name = Column(String(length=100), nullable=True)
last_name = Column(String(length=100), nullable=True)
# Relationship
transactions = relationship("Transaction", back_populates="user")
categories = relationship("Category", back_populates="user")