Skip to content

Commit

Permalink
Added missing 4.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdcamp committed Dec 19, 2024
1 parent 180725b commit 17b2f28
Showing 1 changed file with 249 additions and 0 deletions.
249 changes: 249 additions & 0 deletions app/schema/org.jdc.template.model.db.main.MainDatabase/4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,249 @@
{
"formatVersion": 1,
"database": {
"version": 4,
"identityHash": "f2fc9fae8b7cdb7f5adff5c086bcfc11",
"entities": [
{
"tableName": "Individual",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `householdId` TEXT, `individualType` TEXT NOT NULL, `firstName` TEXT, `lastName` TEXT, `birthDate` TEXT, `alarmTime` TEXT, `phone` TEXT, `email` TEXT, `available` INTEGER NOT NULL, `created` TEXT NOT NULL, `lastModified` TEXT NOT NULL, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "householdId",
"columnName": "householdId",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "individualType",
"columnName": "individualType",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "firstName",
"columnName": "firstName",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "lastName",
"columnName": "lastName",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "birthDate",
"columnName": "birthDate",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "alarmTime",
"columnName": "alarmTime",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "phone",
"columnName": "phone",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "email",
"columnName": "email",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "available",
"columnName": "available",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "created",
"columnName": "created",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "lastModified",
"columnName": "lastModified",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "Household",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `name` TEXT NOT NULL, `created` TEXT NOT NULL, `lastModified` TEXT NOT NULL, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "name",
"columnName": "name",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "created",
"columnName": "created",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "lastModified",
"columnName": "lastModified",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "ChatThread",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `name` TEXT NOT NULL, `ownerIndividualId` TEXT NOT NULL, `createdDate` TEXT NOT NULL, `lastModified` TEXT NOT NULL, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "name",
"columnName": "name",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "ownerIndividualId",
"columnName": "ownerIndividualId",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "createdDate",
"columnName": "createdDate",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "lastModified",
"columnName": "lastModified",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "ChatMessage",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `chatThreadId` TEXT NOT NULL, `individualId` TEXT NOT NULL, `message` TEXT NOT NULL, `createdDate` TEXT NOT NULL, `lastModified` TEXT NOT NULL, PRIMARY KEY(`id`), FOREIGN KEY(`chatThreadId`) REFERENCES `ChatThread`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED)",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "chatThreadId",
"columnName": "chatThreadId",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "individualId",
"columnName": "individualId",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "message",
"columnName": "message",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "createdDate",
"columnName": "createdDate",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "lastModified",
"columnName": "lastModified",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
},
"indices": [],
"foreignKeys": [
{
"table": "ChatThread",
"onDelete": "CASCADE",
"onUpdate": "NO ACTION",
"columns": [
"chatThreadId"
],
"referencedColumns": [
"id"
]
}
]
}
],
"views": [
{
"viewName": "DirectoryItem",
"createSql": "CREATE VIEW `${VIEW_NAME}` AS SELECT id AS individualId, lastName, firstName FROM Individual"
}
],
"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, 'f2fc9fae8b7cdb7f5adff5c086bcfc11')"
]
}
}

0 comments on commit 17b2f28

Please sign in to comment.