forked from BoD/android-contentprovider-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteam.json
42 lines (41 loc) · 777 Bytes
/
team.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"documentation": "A group of people who work together.",
"fields": [
{
"name": "company_id",
"type": "Long",
"nullable": false,
"foreignKey": {
"table": "company",
"onDelete": "CASCADE"
}
},
{
"name": "name",
"type": "String",
"nullable": false
},
{
"documentation": "2 letter country code where this team operates.",
"name": "country_code",
"type": "String",
"nullable": false
},
{
"documentation": "The serial number of this team.",
"name": "serial_number_id",
"type": "Long",
"nullable": false,
"foreignKey": {
"table": "serial_number",
"onDelete": "CASCADE"
}
}
],
"constraints": [
{
"name": "unique_name",
"definition": "UNIQUE (team__name) ON CONFLICT REPLACE"
}
]
}