Skip to content

Commit

Permalink
Export db version 2 scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
Wanjuuuuu committed Nov 1, 2021
1 parent 4fe442f commit 3acad6e
Showing 1 changed file with 64 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"formatVersion": 1,
"database": {
"version": 2,
"identityHash": "3f979833ee0aa054d8a04d965d4f43a4",
"entities": [
{
"tableName": "terms",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `description` TEXT, `scrapedTime` INTEGER NOT NULL, `bookmarked` INTEGER NOT NULL, `name` TEXT NOT NULL, `category` TEXT NOT NULL)",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "description",
"columnName": "description",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "scrapedTime",
"columnName": "scrapedTime",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "bookmarked",
"columnName": "bookmarked",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "name",
"columnName": "name",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "category",
"columnName": "category",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"columnNames": [
"id"
],
"autoGenerate": true
},
"indices": [],
"foreignKeys": []
}
],
"views": [],
"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, '3f979833ee0aa054d8a04d965d4f43a4')"
]
}
}

0 comments on commit 3acad6e

Please sign in to comment.