Company
o1  Evyos LTD - System

2 Evyos Istanbul BD
3 Evyos Ankara BD
Evyos Izmir BD

o Evyos Ankara BD

Çankaya YS
YeniMahalle YS
Sincan YS

o Evyos Istanbul BD

Bakırköy YS
Kadıköy YS
Pendik YS

o Evyos Izmir BD

Karşıyaka YS

duty_id
1 GM Evyos
2 GM Evyos Ankara BD

RelationshipDutyCompany

Berkay duty_id SU = id = 5  -> [TOKEN] -< Company_id = 1 Evyos LTD
Koray  duty_id SU = id = 7  -> [TOKEN] -< Company_id = 3 Evyos Ankara BD

owner_id	member_id	parent_id	active  type            duties_id   Auto
1		    2		    1		    False   Organization    2           @/create
1		    3		    1           False   Organization    2           @/create
1		    4		    1           False   Organization    2           @/create

1		    5		    3           False   Organization    5
1		    6		    3           False   Organization    5
1		    7		    3           False   Organization    5

1		    8		    2           False   Organization
1		    9		    2           False   Organization
1		    10		    2           False   Organization
1           88          3           False   Commercial

1		    11		    4           False   Organization

3		    5		    3           False   Organization    3
3           88          3           False   Commercial      3
3		    6		    3           False   Organization    3
3		    7		    3           False   Organization    3


Evyos LTD SuperUser (company_id=1)
Login...

2Evyos Istanbul BD	Evyos LTD SuperUser + 1 
3Evyos Ankara BD	Evyos LTD SuperUser + 1
4Evyos Izmir BD		Evyos LTD SuperUser + 1
5VevYos Trabzon

1 Evyos LTD	Evyos Verimlilik Sistemleri Evyos LTD SuperUser + 1
 

2Evyos Istanbul BD Istanbul SuperUser	Evyos LTD SuperUser + 1 
3Evyos Ankara BD   Ankara SuperUser	Evyos LTD SuperUser + 1
4Evyos Izmir BD	   Izmır SuperUser      Evyos LTD SuperUser + 1

5VevYos Trabzon


CREATE => 1-> company_id:[2,3,4]
VIEW => 1 company_id:[2,3,4,5,6,7...11]
{
"company_id":
}
5Çankaya YS	Çankaya YS  Evyos Ankara BD SuperUser +
6YeniMahalle YS	YeniMahalle YS Evyos Ankara BD SuperUser +
7Sincan YS	Sincan YS Evyos Ankara BD SuperUser +

8Bakırköy YS	Bakırköy YS
9Kadıköy YS	Kadıköy YS
10Pendik YS	Pendik YS

11Karşıyaka YS	Karşıyaka YS


select * from build a
inner join buid_re b on a.=b.id
where (id = 5)
