Skip to content

Commit

Permalink
Added database scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbyESP committed Feb 23, 2023
1 parent 3c2ceb7 commit adce184
Showing 1 changed file with 168 additions and 0 deletions.
168 changes: 168 additions & 0 deletions app/schemas/com.bobbyesp.spowlo.database.AppDatabase/1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
{
"formatVersion": 1,
"database": {
"version": 1,
"identityHash": "78f4ae7565b93534b8ac54a8016a98d3",
"entities": [
{
"tableName": "CommandShortcut",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `option` TEXT NOT NULL)",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "option",
"columnName": "option",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": true,
"columnNames": [
"id"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "CommandTemplate",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `template` TEXT NOT NULL)",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "name",
"columnName": "name",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "template",
"columnName": "template",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": true,
"columnNames": [
"id"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "CookieProfile",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `url` TEXT NOT NULL, `content` TEXT NOT NULL)",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "url",
"columnName": "url",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "content",
"columnName": "content",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": true,
"columnNames": [
"id"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "DownloadedSongInfo",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `songName` TEXT NOT NULL, `songAuthor` TEXT NOT NULL, `songUrl` TEXT NOT NULL, `thumbnailUrl` TEXT NOT NULL, `songPath` TEXT NOT NULL, `songDuration` REAL NOT NULL DEFAULT 0.0, `extractor` TEXT NOT NULL DEFAULT 'Unknown')",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "songName",
"columnName": "songName",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "songAuthor",
"columnName": "songAuthor",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "songUrl",
"columnName": "songUrl",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "thumbnailUrl",
"columnName": "thumbnailUrl",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "songPath",
"columnName": "songPath",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "songDuration",
"columnName": "songDuration",
"affinity": "REAL",
"notNull": true,
"defaultValue": "0.0"
},
{
"fieldPath": "extractor",
"columnName": "extractor",
"affinity": "TEXT",
"notNull": true,
"defaultValue": "'Unknown'"
}
],
"primaryKey": {
"autoGenerate": true,
"columnNames": [
"id"
]
},
"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, '78f4ae7565b93534b8ac54a8016a98d3')"
]
}
}

0 comments on commit adce184

Please sign in to comment.