Futsch1/medTimer

View on GitHub
app/schemas/com.futsch1.medtimer.database.MedicineRoomDatabase/5.json

Summary

Maintainability
Test Coverage
{
  "formatVersion": 1,
  "database": {
    "version": 5,
    "identityHash": "d2673f77bbfea4929249affb4ba7a180",
    "entities": [
      {
        "tableName": "Medicine",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`medicineName` TEXT, `medicineId` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `color` INTEGER NOT NULL DEFAULT 0xFFFF0000, `useColor` INTEGER NOT NULL DEFAULT false)",
        "fields": [
          {
            "fieldPath": "name",
            "columnName": "medicineName",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "medicineId",
            "columnName": "medicineId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "color",
            "columnName": "color",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "0xFFFF0000"
          },
          {
            "fieldPath": "useColor",
            "columnName": "useColor",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "false"
          }
        ],
        "primaryKey": {
          "autoGenerate": true,
          "columnNames": [
            "medicineId"
          ]
        },
        "indices": [],
        "foreignKeys": []
      },
      {
        "tableName": "Reminder",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`medicineRelId` INTEGER NOT NULL, `reminderId` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `timeInMinutes` INTEGER NOT NULL, `createdTimestamp` INTEGER NOT NULL DEFAULT 0, `daysBetweenReminders` INTEGER NOT NULL DEFAULT 1, `instructions` TEXT DEFAULT '', `amount` TEXT)",
        "fields": [
          {
            "fieldPath": "medicineRelId",
            "columnName": "medicineRelId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "reminderId",
            "columnName": "reminderId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "timeInMinutes",
            "columnName": "timeInMinutes",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "createdTimestamp",
            "columnName": "createdTimestamp",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "0"
          },
          {
            "fieldPath": "daysBetweenReminders",
            "columnName": "daysBetweenReminders",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "1"
          },
          {
            "fieldPath": "instructions",
            "columnName": "instructions",
            "affinity": "TEXT",
            "notNull": false,
            "defaultValue": "''"
          },
          {
            "fieldPath": "amount",
            "columnName": "amount",
            "affinity": "TEXT",
            "notNull": false
          }
        ],
        "primaryKey": {
          "autoGenerate": true,
          "columnNames": [
            "reminderId"
          ]
        },
        "indices": [],
        "foreignKeys": []
      },
      {
        "tableName": "ReminderEvent",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`reminderEventId` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `medicineName` TEXT, `amount` TEXT, `color` INTEGER NOT NULL DEFAULT 0, `useColor` INTEGER NOT NULL DEFAULT false, `status` TEXT, `remindedTimestamp` INTEGER NOT NULL, `processedTimestamp` INTEGER NOT NULL, `reminderId` INTEGER NOT NULL, `notificationId` INTEGER NOT NULL DEFAULT 0)",
        "fields": [
          {
            "fieldPath": "reminderEventId",
            "columnName": "reminderEventId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "medicineName",
            "columnName": "medicineName",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "amount",
            "columnName": "amount",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "color",
            "columnName": "color",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "0"
          },
          {
            "fieldPath": "useColor",
            "columnName": "useColor",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "false"
          },
          {
            "fieldPath": "status",
            "columnName": "status",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "remindedTimestamp",
            "columnName": "remindedTimestamp",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "processedTimestamp",
            "columnName": "processedTimestamp",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "reminderId",
            "columnName": "reminderId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "notificationId",
            "columnName": "notificationId",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "0"
          }
        ],
        "primaryKey": {
          "autoGenerate": true,
          "columnNames": [
            "reminderEventId"
          ]
        },
        "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, 'd2673f77bbfea4929249affb4ba7a180')"
    ]
  }
}