{ "formatVersion": 1, "database": { "version": 1, "identityHash": "69f8a982d721a7067748166e45274656", "entities": [ { "tableName": "PersonEntity", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`pGuid` TEXT NOT NULL, `pGuidHash` INTEGER NOT NULL, `pActive` INTEGER NOT NULL, `pLastModified` INTEGER NOT NULL, `pUsername` TEXT, `pGivenName` TEXT NOT NULL, `pFamilyName` TEXT NOT NULL, `pMiddleName` TEXT, PRIMARY KEY(`pGuidHash`))", "fields": [ { "fieldPath": "pGuid", "columnName": "pGuid", "affinity": "TEXT", "notNull": true }, { "fieldPath": "pGuidHash", "columnName": "pGuidHash", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "pActive", "columnName": "pActive", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "pLastModified", "columnName": "pLastModified", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "pUsername", "columnName": "pUsername", "affinity": "TEXT" }, { "fieldPath": "pGivenName", "columnName": "pGivenName", "affinity": "TEXT", "notNull": true }, { "fieldPath": "pFamilyName", "columnName": "pFamilyName", "affinity": "TEXT", "notNull": true }, { "fieldPath": "pMiddleName", "columnName": "pMiddleName", "affinity": "TEXT" } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "pGuidHash" ] } }, { "tableName": "PersonRoleEntity", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`prUid` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `prPersonGuidHash` INTEGER NOT NULL, `prIsPrimaryRole` INTEGER NOT NULL, `prRoleType` INTEGER NOT NULL, `prBeginDate` INTEGER, `prEndDate` INTEGER)", "fields": [ { "fieldPath": "prUid", "columnName": "prUid", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "prPersonGuidHash", "columnName": "prPersonGuidHash", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "prIsPrimaryRole", "columnName": "prIsPrimaryRole", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "prRoleType", "columnName": "prRoleType", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "prBeginDate", "columnName": "prBeginDate", "affinity": "INTEGER" }, { "fieldPath": "prEndDate", "columnName": "prEndDate", "affinity": "INTEGER" } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "prUid" ] } }, { "tableName": "PersonPasswordEntity", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`pppGuid` INTEGER NOT NULL, `authAlgorithm` TEXT NOT NULL, `authEncoded` TEXT NOT NULL, `authSalt` TEXT NOT NULL, `authIterations` INTEGER NOT NULL, `authKeyLen` INTEGER NOT NULL, PRIMARY KEY(`pppGuid`))", "fields": [ { "fieldPath": "pppGuid", "columnName": "pppGuid", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "authAlgorithm", "columnName": "authAlgorithm", "affinity": "TEXT", "notNull": true }, { "fieldPath": "authEncoded", "columnName": "authEncoded", "affinity": "TEXT", "notNull": true }, { "fieldPath": "authSalt", "columnName": "authSalt", "affinity": "TEXT", "notNull": true }, { "fieldPath": "authIterations", "columnName": "authIterations", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "authKeyLen", "columnName": "authKeyLen", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "pppGuid" ] } }, { "tableName": "AuthTokenEntity", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`atUid` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `atPGuidHash` INTEGER NOT NULL, `atPGuid` TEXT NOT NULL, `atCode` TEXT, `atToken` TEXT NOT NULL, `atTimeCreated` INTEGER NOT NULL, `atTtl` INTEGER NOT NULL)", "fields": [ { "fieldPath": "atUid", "columnName": "atUid", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "atPGuidHash", "columnName": "atPGuidHash", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "atPGuid", "columnName": "atPGuid", "affinity": "TEXT", "notNull": true }, { "fieldPath": "atCode", "columnName": "atCode", "affinity": "TEXT" }, { "fieldPath": "atToken", "columnName": "atToken", "affinity": "TEXT", "notNull": true }, { "fieldPath": "atTimeCreated", "columnName": "atTimeCreated", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "atTtl", "columnName": "atTtl", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "atUid" ] } }, { "tableName": "ReportEntity", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`reportId` TEXT NOT NULL, `ownerGuid` TEXT NOT NULL, `title` TEXT NOT NULL, `reportOptions` TEXT NOT NULL, `reportIsTemplate` INTEGER NOT NULL, `active` INTEGER NOT NULL, PRIMARY KEY(`reportId`))", "fields": [ { "fieldPath": "reportId", "columnName": "reportId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "ownerGuid", "columnName": "ownerGuid", "affinity": "TEXT", "notNull": true }, { "fieldPath": "title", "columnName": "title", "affinity": "TEXT", "notNull": true }, { "fieldPath": "reportOptions", "columnName": "reportOptions", "affinity": "TEXT", "notNull": true }, { "fieldPath": "reportIsTemplate", "columnName": "reportIsTemplate", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "active", "columnName": "active", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "reportId" ] } }, { "tableName": "IndicatorEntity", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`indicatorId` TEXT NOT NULL, `name` TEXT NOT NULL, `description` TEXT NOT NULL, `type` TEXT NOT NULL, `sql` TEXT NOT NULL, PRIMARY KEY(`indicatorId`))", "fields": [ { "fieldPath": "indicatorId", "columnName": "indicatorId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "name", "columnName": "name", "affinity": "TEXT", "notNull": true }, { "fieldPath": "description", "columnName": "description", "affinity": "TEXT", "notNull": true }, { "fieldPath": "type", "columnName": "type", "affinity": "TEXT", "notNull": true }, { "fieldPath": "sql", "columnName": "sql", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "indicatorId" ] } } ], "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, '69f8a982d721a7067748166e45274656')" ] } }