143 lines
2.2 KiB
JSON
143 lines
2.2 KiB
JSON
|
|
{
|
||
|
|
"domains": [
|
||
|
|
{
|
||
|
|
"name": "calendar",
|
||
|
|
"key_field": {
|
||
|
|
"name": "id"
|
||
|
|
},
|
||
|
|
"data_fields": [
|
||
|
|
{
|
||
|
|
"name": "name",
|
||
|
|
"nullable": false,
|
||
|
|
"type": "string_short"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "description",
|
||
|
|
"nullable": true,
|
||
|
|
"type": "string_long"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "color",
|
||
|
|
"nullable": true,
|
||
|
|
"type": "string_short"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "calendar_appointment",
|
||
|
|
"key_field": {
|
||
|
|
"name": "id"
|
||
|
|
},
|
||
|
|
"data_fields": [
|
||
|
|
{
|
||
|
|
"name": "calendar_id",
|
||
|
|
"nullable": false,
|
||
|
|
"type": "integer"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "title",
|
||
|
|
"nullable": false,
|
||
|
|
"type": "string_short"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "description",
|
||
|
|
"nullable": true,
|
||
|
|
"type": "string_long"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "location",
|
||
|
|
"nullable": true,
|
||
|
|
"type": "string_short"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "begin",
|
||
|
|
"description": "UNIX timestamp",
|
||
|
|
"nullable": false,
|
||
|
|
"type": "integer"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "end",
|
||
|
|
"description": "UNIX timestamp",
|
||
|
|
"nullable": true,
|
||
|
|
"type": "integer"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "contact",
|
||
|
|
"nullable": true,
|
||
|
|
"type": "string_short"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"constraints": [
|
||
|
|
{
|
||
|
|
"kind": "foreign_key",
|
||
|
|
"parameters": {
|
||
|
|
"fields": [
|
||
|
|
"calendar_id"
|
||
|
|
],
|
||
|
|
"reference": {
|
||
|
|
"name": "calendar",
|
||
|
|
"fields": [
|
||
|
|
"id"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "organization",
|
||
|
|
"key_field": {
|
||
|
|
"name": "id"
|
||
|
|
},
|
||
|
|
"data_fields": [
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "organization_calendars",
|
||
|
|
"data_fields": [
|
||
|
|
{
|
||
|
|
"name": "organization_id",
|
||
|
|
"nullable": false,
|
||
|
|
"type": "integer"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "calendar_id",
|
||
|
|
"nullable": false,
|
||
|
|
"type": "integer"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"constraints": [
|
||
|
|
{
|
||
|
|
"kind": "foreign_key",
|
||
|
|
"parameters": {
|
||
|
|
"fields": [
|
||
|
|
"organization_id"
|
||
|
|
],
|
||
|
|
"reference": {
|
||
|
|
"name": "organization",
|
||
|
|
"fields": [
|
||
|
|
"id"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"kind": "foreign_key",
|
||
|
|
"parameters": {
|
||
|
|
"fields": [
|
||
|
|
"calendar_id"
|
||
|
|
],
|
||
|
|
"reference": {
|
||
|
|
"name": "calendar",
|
||
|
|
"fields": [
|
||
|
|
"id"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
|