feat: Identity & Company Sync v1.2, Admin hiearchia és Pénzügyi logika véglegesítése
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
# backend/app/models/identity.py
|
||||
import uuid
|
||||
import enum
|
||||
from sqlalchemy import Column, Integer, String, Boolean, DateTime, ForeignKey, JSON, Numeric, text, Enum
|
||||
@@ -40,7 +39,6 @@ class User(Base):
|
||||
email = Column(String, unique=True, index=True, nullable=False)
|
||||
hashed_password = Column(String, nullable=False)
|
||||
|
||||
# Technikai mezők átmentése a régi user.py-ból
|
||||
role = Column(Enum(UserRole), default=UserRole.USER)
|
||||
is_active = Column(Boolean, default=True)
|
||||
is_superuser = Column(Boolean, default=False)
|
||||
@@ -58,7 +56,6 @@ class User(Base):
|
||||
|
||||
person = relationship("Person", back_populates="users")
|
||||
wallet = relationship("Wallet", back_populates="user", uselist=False)
|
||||
# Az Organization kapcsolathoz (ha szükséges az import miatt)
|
||||
owned_organizations = relationship("Organization", backref="owner")
|
||||
|
||||
class Wallet(Base):
|
||||
|
||||
Reference in New Issue
Block a user