gallery/app/schemas/sh.hnet.gallery.facts.GalleryDatabase/1.json

81 lines
No EOL
2.4 KiB
JSON

{
"formatVersion": 1,
"database": {
"version": 1,
"identityHash": "ba409ebb853b755b85ea23067f9d60e1",
"entities": [
{
"tableName": "fact",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `generation` INTEGER NOT NULL, `parser` INTEGER NOT NULL, `located` INTEGER NOT NULL, `offsetMinutes` INTEGER, `latitude` REAL, `longitude` REAL, `motion` INTEGER NOT NULL, `motionLength` INTEGER, `gainmap` INTEGER NOT NULL, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "generation",
"columnName": "generation",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "parser",
"columnName": "parser",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "located",
"columnName": "located",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "offsetMinutes",
"columnName": "offsetMinutes",
"affinity": "INTEGER"
},
{
"fieldPath": "latitude",
"columnName": "latitude",
"affinity": "REAL"
},
{
"fieldPath": "longitude",
"columnName": "longitude",
"affinity": "REAL"
},
{
"fieldPath": "motion",
"columnName": "motion",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "motionLength",
"columnName": "motionLength",
"affinity": "INTEGER"
},
{
"fieldPath": "gainmap",
"columnName": "gainmap",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
}
}
],
"setupQueries": [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'ba409ebb853b755b85ea23067f9d60e1')"
]
}
}