forked from BoD/android-contentprovider-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathperson.json
63 lines (62 loc) · 1.23 KB
/
person.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"documentation": "A human being which is part of a team.",
"fields": [
{
"documentation": "First name of this person. For instance, John.",
"name": "first_name",
"type": "String",
"nullable": false,
},
{
"documentation": "Last name (a.k.a. Given name) of this person. For instance, Smith.",
"name": "last_name",
"type": "String",
"nullable": false,
"index": true,
},
{
"name": "Age",
"type": "Integer",
"nullable": false,
},
{
"name": "birth_date",
"type": "Date",
"nullable": true,
},
{
"documentation": "If {@code true}, this person has blue eyes. Otherwise, this person doesn't have blue eyes.",
"name": "has_blue_eyes",
"type": "Boolean",
"nullable": false,
"defaultValue": "0",
},
{
"name": "height",
"type": "Float",
"nullable": true,
},
{
"name": "gender",
"type": "enum",
"enumName": "Gender",
"enumValues": [
"MALE",
"FEMALE",
{"OTHER": "Value to use when neither male nor female"},
],
"nullable": false,
},
{
"name": "country_code",
"type": "String",
"nullable": false,
},
],
"constraints": [
{
"name": "unique_name",
"definition": "UNIQUE (first_name, last_name) ON CONFLICT REPLACE"
},
],
}