updated app reachable codes

This commit is contained in:
2025-04-09 11:51:28 +03:00
parent 7eadadbd1d
commit 7c2150a8b0
23 changed files with 1040 additions and 187 deletions

View File

@@ -0,0 +1,24 @@
from Controllers.Postgres.database import get_db
from Schemas import (
Users,
Employees,
)
from init_service_to_events import init_service_to_event_matches_for_super_user
from init_applications import init_applications_for_super_user
if __name__ == "__main__":
"""
Create Applications to serve on Next.js | Create Events to add to Service
Set Events to service | Set Service to employee
"""
with get_db() as db_session:
if super_man := Users.filter_one(
Users.email == "karatay.berkay.sup@evyos.com.tr", db=db_session
).data:
super_employee = Employees.filter_one(
Employees.people_id == super_man.person_id, db=db_session
).data
init_service_to_event_matches_for_super_user(super_user=super_employee, db_session=db_session)
init_applications_for_super_user(super_user=super_employee, db_session=db_session)