Skip to content

Commit 6f3be73

Browse files
committed
Added schemas
1 parent 5e6c551 commit 6f3be73

3 files changed

Lines changed: 104 additions & 1 deletion

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
bin/
1313
gen/
1414
out/
15-
schemas/
1615

1716
# Local configuration file (sdk path, etc)
1817
local.properties
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"formatVersion": 1,
3+
"database": {
4+
"version": 1,
5+
"identityHash": "03ee339dcb9144462e29fcb144d3ca9f",
6+
"entities": [
7+
{
8+
"tableName": "DbForm",
9+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `userKey` TEXT NOT NULL, `fields` TEXT NOT NULL, `sent` INTEGER NOT NULL, PRIMARY KEY(`id`))",
10+
"fields": [
11+
{
12+
"fieldPath": "id",
13+
"columnName": "id",
14+
"affinity": "INTEGER",
15+
"notNull": true
16+
},
17+
{
18+
"fieldPath": "userKey",
19+
"columnName": "userKey",
20+
"affinity": "TEXT",
21+
"notNull": true
22+
},
23+
{
24+
"fieldPath": "fields",
25+
"columnName": "fields",
26+
"affinity": "TEXT",
27+
"notNull": true
28+
},
29+
{
30+
"fieldPath": "sent",
31+
"columnName": "sent",
32+
"affinity": "INTEGER",
33+
"notNull": true
34+
}
35+
],
36+
"primaryKey": {
37+
"autoGenerate": false,
38+
"columnNames": [
39+
"id"
40+
]
41+
},
42+
"indices": [],
43+
"foreignKeys": []
44+
}
45+
],
46+
"views": [],
47+
"setupQueries": [
48+
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
49+
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '03ee339dcb9144462e29fcb144d3ca9f')"
50+
]
51+
}
52+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"formatVersion": 1,
3+
"database": {
4+
"version": 2,
5+
"identityHash": "5f1d821c9289bf3428834f44e9744f53",
6+
"entities": [
7+
{
8+
"tableName": "DbForm",
9+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `userKey` TEXT NOT NULL, `fields` TEXT NOT NULL, `sent` INTEGER NOT NULL, PRIMARY KEY(`id`))",
10+
"fields": [
11+
{
12+
"fieldPath": "id",
13+
"columnName": "id",
14+
"affinity": "TEXT",
15+
"notNull": true
16+
},
17+
{
18+
"fieldPath": "userKey",
19+
"columnName": "userKey",
20+
"affinity": "TEXT",
21+
"notNull": true
22+
},
23+
{
24+
"fieldPath": "fields",
25+
"columnName": "fields",
26+
"affinity": "TEXT",
27+
"notNull": true
28+
},
29+
{
30+
"fieldPath": "sent",
31+
"columnName": "sent",
32+
"affinity": "INTEGER",
33+
"notNull": true
34+
}
35+
],
36+
"primaryKey": {
37+
"autoGenerate": false,
38+
"columnNames": [
39+
"id"
40+
]
41+
},
42+
"indices": [],
43+
"foreignKeys": []
44+
}
45+
],
46+
"views": [],
47+
"setupQueries": [
48+
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
49+
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '5f1d821c9289bf3428834f44e9744f53')"
50+
]
51+
}
52+
}

0 commit comments

Comments
 (0)