feat: add new column and delete old

This commit is contained in:
2026-05-13 11:18:21 +03:00
parent 20840c95de
commit 4c702b6260
5 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
from __future__ import annotations
from sqlalchemy import Boolean,Date,String,DateTime
from sqlalchemy import Boolean,Date,String,DateTime,Text
from sqlalchemy.orm import Mapped,mapped_column
from src.infrastructure.database.models.base import Base
from src.infrastructure.database.models.mixins import UlidPrimaryKeyMixin,AuditTimestampsMixin,SoftDeleteMixin
@@ -17,7 +17,7 @@ class UserModel(Base, UlidPrimaryKeyMixin, AuditTimestampsMixin, SoftDeleteMixin
middle_name: Mapped[str | None] = mapped_column(String(128), nullable=True)
birth_date: Mapped[Date | None] = mapped_column(Date, nullable=True)
crypto_wallet: Mapped[str | None] = mapped_column(String(255), nullable=True)
encrypted_mnemonic: Mapped[str | None] = mapped_column(Text, nullable=True)
phone: Mapped[str | None] = mapped_column(String(16), nullable=True)
passport_data: Mapped[str | None] = mapped_column(String(255), nullable=True)

View File

@@ -24,7 +24,7 @@ class UserRepository(IUserRepository):
middle_name=model.middle_name,
last_name=model.last_name,
birth_date=model.birth_date,
crypto_wallet=model.crypto_wallet,
encrypted_mnemonic=model.encrypted_mnemonic,
phone=model.phone,
passport_data=model.passport_data,
inn=model.inn,