schemas updated

This commit is contained in:
2025-01-13 22:55:56 +03:00
parent 50ae911d4e
commit ab76e972e3
12 changed files with 121 additions and 45 deletions

View File

@@ -6,15 +6,15 @@ from sqlalchemy import (
)
from sqlalchemy.orm import mapped_column, Mapped
from databases.language_models.company.employee import (
from LanguageModels.Database.company.employee import (
StaffLanguageModel,
EmployeesLanguageModel,
EmployeeHistoryLanguageModel,
EmployeesSalariesLanguageModel,
)
from databases.sql_models.core_mixin import CrudCollection
from Services.PostgresDb import CrudCollection
from api_validations.validations_request import InsertCompanyEmployees
from ApiValidations.Request import InsertCompanyEmployees
class Staff(CrudCollection):
@@ -47,7 +47,7 @@ class Staff(CrudCollection):
@classmethod
def create_action(cls, data: InsertCompanyEmployees):
from databases import Duties
from Schemas import Duties
data_dict = data.model_dump()
if duty := Duties.find_one(uu_id=data.duty_uu_id):