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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
|
{
"version": "8",
"dialect": "postgres",
"id": "eab7999e-ded1-4ae7-9559-4977e2679734",
"prevIds": [
"00000000-0000-0000-0000-000000000000"
],
"ddl": [
{
"isRlsEnabled": false,
"name": "linkedDevices",
"entityType": "tables",
"schema": "public"
},
{
"isRlsEnabled": false,
"name": "users",
"entityType": "tables",
"schema": "public"
},
{
"type": "integer",
"typeSchema": null,
"notNull": true,
"dimensions": 0,
"default": null,
"generated": null,
"identity": {
"type": "always",
"name": "linkedDevices_id_seq",
"increment": "1",
"startWith": "1",
"minValue": "1",
"maxValue": "2147483647",
"cache": 1,
"cycle": false
},
"name": "id",
"entityType": "columns",
"schema": "public",
"table": "linkedDevices"
},
{
"type": "varchar(255)",
"typeSchema": null,
"notNull": true,
"dimensions": 0,
"default": "'New Device'",
"generated": null,
"identity": null,
"name": "nickname",
"entityType": "columns",
"schema": "public",
"table": "linkedDevices"
},
{
"type": "integer",
"typeSchema": null,
"notNull": true,
"dimensions": 0,
"default": null,
"generated": null,
"identity": null,
"name": "parent_id",
"entityType": "columns",
"schema": "public",
"table": "linkedDevices"
},
{
"type": "integer",
"typeSchema": null,
"notNull": true,
"dimensions": 0,
"default": null,
"generated": null,
"identity": {
"type": "always",
"name": "users_id_seq",
"increment": "1",
"startWith": "1",
"minValue": "1",
"maxValue": "2147483647",
"cache": 1,
"cycle": false
},
"name": "id",
"entityType": "columns",
"schema": "public",
"table": "users"
},
{
"type": "varchar(255)",
"typeSchema": null,
"notNull": true,
"dimensions": 0,
"default": null,
"generated": null,
"identity": null,
"name": "email",
"entityType": "columns",
"schema": "public",
"table": "users"
},
{
"type": "varchar(255)",
"typeSchema": null,
"notNull": true,
"dimensions": 0,
"default": null,
"generated": null,
"identity": null,
"name": "password",
"entityType": "columns",
"schema": "public",
"table": "users"
},
{
"type": "boolean",
"typeSchema": null,
"notNull": false,
"dimensions": 0,
"default": "false",
"generated": null,
"identity": null,
"name": "emailVerified",
"entityType": "columns",
"schema": "public",
"table": "users"
},
{
"type": "varchar(6)",
"typeSchema": null,
"notNull": true,
"dimensions": 0,
"default": null,
"generated": null,
"identity": null,
"name": "emailCode",
"entityType": "columns",
"schema": "public",
"table": "users"
},
{
"columns": [
"id"
],
"nameExplicit": false,
"name": "linkedDevices_pkey",
"schema": "public",
"table": "linkedDevices",
"entityType": "pks"
},
{
"columns": [
"id"
],
"nameExplicit": false,
"name": "users_pkey",
"schema": "public",
"table": "users",
"entityType": "pks"
},
{
"nameExplicit": false,
"columns": [
"email"
],
"nullsNotDistinct": false,
"name": "users_email_key",
"schema": "public",
"table": "users",
"entityType": "uniques"
}
],
"renames": []
}
|