You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

38 lines
1018 B

Map<dynamic, dynamic> schema = {
"projects": {
"project_id": {
"collection": "project",
"kind": "M2M",
"customers": {
"directu_users_id": {"collection": "directus_users", "kind": "M2M"}
},
"agencies": {
"agency_id": {"collection": "agency", "kind": "M2M"}
},
"steps": {
"collection": "steps",
"kind": "O2M",
"repports": {"collection": "repport", "kind": "O2M"}
}
}
},
"agencies": {
"agency_id": {
"collection": "agency",
"employees": {"collection": "directus_users"},
"projects": {
"project_id": {
"collection": "project",
"kind": "M2M",
"customers": {"collection": "directus_users", "kind": "M2M"},
//"agencies": {"collection": "agency", "kind": "M2M"},
"steps": {
"collection": "steps",
"kind": "O2M",
"repports": {"collection": "repport", "kind": "O2M"}
}
}
}
}
}
};