{
  "formatVersion": 1,
  "database": {
    "version": 1,
    "identityHash": "96272f43076988345569b6ad637a4e01",
    "entities": [
      {
        "tableName": "AUTHOR",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`AUTHOR_ID` INTEGER NOT NULL, `AUTHOR_NAME` TEXT NOT NULL, `AUTHOR_SORT` TEXT NOT NULL, PRIMARY KEY(`AUTHOR_ID`))",
        "fields": [
          {
            "fieldPath": "id",
            "columnName": "AUTHOR_ID",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "name",
            "columnName": "AUTHOR_NAME",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "sort",
            "columnName": "AUTHOR_SORT",
            "affinity": "TEXT",
            "notNull": true
          }
        ],
        "primaryKey": {
          "columnNames": [
            "AUTHOR_ID"
          ],
          "autoGenerate": false
        },
        "indices": [],
        "foreignKeys": []
      },
      {
        "tableName": "BOOK",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`BOOK_ID` INTEGER NOT NULL, `BOOK_TITLE` TEXT NOT NULL, `BOOK_SORT` TEXT NOT NULL, `BOOK_HAVE_COVER` INTEGER NOT NULL, `BOOK_RELEASE_DATE` INTEGER NOT NULL, `BOOK_LANGUAGE_ID` INTEGER, `BOOK_RATING` INTEGER, `BOOK_SERIES_ID` INTEGER, `BOOK_SERIES_INDEX` INTEGER, `BOOK_SYNOPSIS` TEXT, `BOOK_IS_NEW` INTEGER NOT NULL, `BOOK_NEW_ORDER` INTEGER, PRIMARY KEY(`BOOK_ID`))",
        "fields": [
          {
            "fieldPath": "id",
            "columnName": "BOOK_ID",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "title",
            "columnName": "BOOK_TITLE",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "sort",
            "columnName": "BOOK_SORT",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "haveCover",
            "columnName": "BOOK_HAVE_COVER",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "releaseDate",
            "columnName": "BOOK_RELEASE_DATE",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "language",
            "columnName": "BOOK_LANGUAGE_ID",
            "affinity": "INTEGER",
            "notNull": false
          },
          {
            "fieldPath": "rating",
            "columnName": "BOOK_RATING",
            "affinity": "INTEGER",
            "notNull": false
          },
          {
            "fieldPath": "series",
            "columnName": "BOOK_SERIES_ID",
            "affinity": "INTEGER",
            "notNull": false
          },
          {
            "fieldPath": "seriesIndex",
            "columnName": "BOOK_SERIES_INDEX",
            "affinity": "INTEGER",
            "notNull": false
          },
          {
            "fieldPath": "synopsis",
            "columnName": "BOOK_SYNOPSIS",
            "affinity": "TEXT",
            "notNull": false
          },
          {
            "fieldPath": "isNew",
            "columnName": "BOOK_IS_NEW",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "newOrder",
            "columnName": "BOOK_NEW_ORDER",
            "affinity": "INTEGER",
            "notNull": false
          }
        ],
        "primaryKey": {
          "columnNames": [
            "BOOK_ID"
          ],
          "autoGenerate": false
        },
        "indices": [],
        "foreignKeys": []
      },
      {
        "tableName": "GENRE",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`GENRE_ID` INTEGER NOT NULL, `GENRE_NAME` TEXT NOT NULL, PRIMARY KEY(`GENRE_ID`))",
        "fields": [
          {
            "fieldPath": "id",
            "columnName": "GENRE_ID",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "name",
            "columnName": "GENRE_NAME",
            "affinity": "TEXT",
            "notNull": true
          }
        ],
        "primaryKey": {
          "columnNames": [
            "GENRE_ID"
          ],
          "autoGenerate": false
        },
        "indices": [],
        "foreignKeys": []
      },
      {
        "tableName": "LANGUAGE",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`LANGUAGE_ID` INTEGER NOT NULL, `LANGUAGE_NAME` TEXT NOT NULL, PRIMARY KEY(`LANGUAGE_ID`))",
        "fields": [
          {
            "fieldPath": "id",
            "columnName": "LANGUAGE_ID",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "code",
            "columnName": "LANGUAGE_NAME",
            "affinity": "TEXT",
            "notNull": true
          }
        ],
        "primaryKey": {
          "columnNames": [
            "LANGUAGE_ID"
          ],
          "autoGenerate": false
        },
        "indices": [],
        "foreignKeys": []
      },
      {
        "tableName": "SERIES",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`SERIES_ID` INTEGER NOT NULL, `SERIES_NAME` TEXT NOT NULL, `SERIES_SORT` TEXT NOT NULL, PRIMARY KEY(`SERIES_ID`))",
        "fields": [
          {
            "fieldPath": "id",
            "columnName": "SERIES_ID",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "name",
            "columnName": "SERIES_NAME",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "sort",
            "columnName": "SERIES_SORT",
            "affinity": "TEXT",
            "notNull": true
          }
        ],
        "primaryKey": {
          "columnNames": [
            "SERIES_ID"
          ],
          "autoGenerate": false
        },
        "indices": [],
        "foreignKeys": []
      },
      {
        "tableName": "BookAuthorCrossRef",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`BOOK_ID` INTEGER NOT NULL, `AUTHOR_ID` INTEGER NOT NULL, PRIMARY KEY(`BOOK_ID`, `AUTHOR_ID`))",
        "fields": [
          {
            "fieldPath": "bookId",
            "columnName": "BOOK_ID",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "authorId",
            "columnName": "AUTHOR_ID",
            "affinity": "INTEGER",
            "notNull": true
          }
        ],
        "primaryKey": {
          "columnNames": [
            "BOOK_ID",
            "AUTHOR_ID"
          ],
          "autoGenerate": false
        },
        "indices": [
          {
            "name": "index_BookAuthorCrossRef_AUTHOR_ID",
            "unique": false,
            "columnNames": [
              "AUTHOR_ID"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_BookAuthorCrossRef_AUTHOR_ID` ON `${TABLE_NAME}` (`AUTHOR_ID`)"
          }
        ],
        "foreignKeys": []
      },
      {
        "tableName": "BookGenreCrossRef",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`BOOK_ID` INTEGER NOT NULL, `GENRE_ID` INTEGER NOT NULL, PRIMARY KEY(`BOOK_ID`, `GENRE_ID`))",
        "fields": [
          {
            "fieldPath": "bookId",
            "columnName": "BOOK_ID",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "genreId",
            "columnName": "GENRE_ID",
            "affinity": "INTEGER",
            "notNull": true
          }
        ],
        "primaryKey": {
          "columnNames": [
            "BOOK_ID",
            "GENRE_ID"
          ],
          "autoGenerate": false
        },
        "indices": [
          {
            "name": "index_BookGenreCrossRef_GENRE_ID",
            "unique": false,
            "columnNames": [
              "GENRE_ID"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_BookGenreCrossRef_GENRE_ID` ON `${TABLE_NAME}` (`GENRE_ID`)"
          }
        ],
        "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, '96272f43076988345569b6ad637a4e01')"
    ]
  }
}