53 lines
730 B
Plaintext
53 lines
730 B
Plaintext
Building.Controller
|
|
|
|
class Person:
|
|
1. Berkay Karatay
|
|
...
|
|
|
|
class User:
|
|
Berkay User
|
|
...
|
|
|
|
class Build:
|
|
response_company_id:
|
|
X resp_employee: (person_id old version)
|
|
|
|
class Employee2Parts:
|
|
|
|
build_id:
|
|
part_id:
|
|
resp_employee: Person + Duty
|
|
...
|
|
|
|
class LivingSpace:
|
|
|
|
is_tenant_live:
|
|
build_parts_id:
|
|
owner_person_id:
|
|
life_person_id:
|
|
...
|
|
|
|
|
|
[Login Action]
|
|
|
|
Person -> User
|
|
|
|
Build -> Parts -> Employee -> Person
|
|
|
|
! Check is_occupant is true or false
|
|
|
|
Query: LivingSpace
|
|
Person -> Occupant -> LivingSpace -> (n)Part -> (n)Build
|
|
|
|
Query: Employee2Parts
|
|
Person -> Employee -> (n)Build [Employee2Parts]
|
|
|
|
Occupant & Employee[]
|
|
|
|
Occupant: Tenant | Owner n(Record)
|
|
LivingSpace[Info] && Event[]
|
|
|
|
Employee:
|
|
Build[Info] && Event[]
|
|
|