{ "formatVersion": 1, "database": { "version": 7, "identityHash": "15c94df0a62438ff28d451c074c94c59", "entities": [ { "tableName": "Route", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `type` INTEGER NOT NULL, `number` TEXT, `name` TEXT NOT NULL, PRIMARY KEY(`id`))", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "TEXT", "notNull": true }, { "fieldPath": "type", "columnName": "type", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "number", "columnName": "number", "affinity": "TEXT" }, { "fieldPath": "name", "columnName": "name", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "id" ] } }, { "tableName": "Service", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `days` INTEGER NOT NULL, `start` INTEGER NOT NULL, `end` INTEGER NOT NULL, PRIMARY KEY(`id`))", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "TEXT", "notNull": true }, { "fieldPath": "days", "columnName": "days", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "start", "columnName": "start", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "end", "columnName": "end", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "id" ] }, "indices": [ { "name": "index_Service_days", "unique": false, "columnNames": [ "days" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_Service_days` ON `${TABLE_NAME}` (`days`)" } ] }, { "tableName": "Shape", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `path` BLOB NOT NULL, PRIMARY KEY(`id`))", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "TEXT", "notNull": true }, { "fieldPath": "path", "columnName": "path", "affinity": "BLOB", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "id" ] } }, { "tableName": "Stop", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `name` TEXT NOT NULL, `lat` REAL NOT NULL, `lng` REAL NOT NULL, `parent` TEXT NOT NULL, `hasWheelChairBoarding` INTEGER NOT NULL, `level` TEXT NOT NULL, `platformCode` TEXT NOT NULL, PRIMARY KEY(`id`))", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "TEXT", "notNull": true }, { "fieldPath": "name", "columnName": "name", "affinity": "TEXT", "notNull": true }, { "fieldPath": "lat", "columnName": "lat", "affinity": "REAL", "notNull": true }, { "fieldPath": "lng", "columnName": "lng", "affinity": "REAL", "notNull": true }, { "fieldPath": "parent", "columnName": "parent", "affinity": "TEXT", "notNull": true }, { "fieldPath": "hasWheelChairBoarding", "columnName": "hasWheelChairBoarding", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "level", "columnName": "level", "affinity": "TEXT", "notNull": true }, { "fieldPath": "platformCode", "columnName": "platformCode", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "id" ] }, "indices": [ { "name": "index_Stop_parent", "unique": false, "columnNames": [ "parent" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_Stop_parent` ON `${TABLE_NAME}` (`parent`)" } ] }, { "tableName": "StopTime", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`tripId` TEXT NOT NULL, `stopId` TEXT NOT NULL, `arrivalTime` INTEGER NOT NULL, `departureTime` INTEGER NOT NULL, `headsign` TEXT, `pickupType` INTEGER NOT NULL, `dropOffType` INTEGER NOT NULL, PRIMARY KEY(`tripId`, `stopId`), FOREIGN KEY(`tripId`) REFERENCES `Trip`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE , FOREIGN KEY(`stopId`) REFERENCES `Stop`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "tripId", "columnName": "tripId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "stopId", "columnName": "stopId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "arrivalTime", "columnName": "arrivalTime", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "departureTime", "columnName": "departureTime", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "headsign", "columnName": "headsign", "affinity": "TEXT" }, { "fieldPath": "pickupType", "columnName": "pickupType", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "dropOffType", "columnName": "dropOffType", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "tripId", "stopId" ] }, "indices": [ { "name": "index_StopTime_tripId", "unique": false, "columnNames": [ "tripId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_StopTime_tripId` ON `${TABLE_NAME}` (`tripId`)" }, { "name": "index_StopTime_stopId", "unique": false, "columnNames": [ "stopId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_StopTime_stopId` ON `${TABLE_NAME}` (`stopId`)" } ], "foreignKeys": [ { "table": "Trip", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "tripId" ], "referencedColumns": [ "id" ] }, { "table": "Stop", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "stopId" ], "referencedColumns": [ "id" ] } ] }, { "tableName": "Trip", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `routeId` TEXT NOT NULL, `serviceId` TEXT NOT NULL, `shapeId` TEXT, `tripHeadsign` TEXT NOT NULL, `directionId` TEXT NOT NULL, `blockId` TEXT NOT NULL, `wheelchairAccessible` TEXT NOT NULL, PRIMARY KEY(`id`), FOREIGN KEY(`routeId`) REFERENCES `Route`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE , FOREIGN KEY(`shapeId`) REFERENCES `Shape`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "TEXT", "notNull": true }, { "fieldPath": "routeId", "columnName": "routeId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "serviceId", "columnName": "serviceId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "shapeId", "columnName": "shapeId", "affinity": "TEXT" }, { "fieldPath": "tripHeadsign", "columnName": "tripHeadsign", "affinity": "TEXT", "notNull": true }, { "fieldPath": "directionId", "columnName": "directionId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "blockId", "columnName": "blockId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "wheelchairAccessible", "columnName": "wheelchairAccessible", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "id" ] }, "indices": [ { "name": "index_Trip_shapeId", "unique": false, "columnNames": [ "shapeId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_Trip_shapeId` ON `${TABLE_NAME}` (`shapeId`)" }, { "name": "index_Trip_routeId", "unique": false, "columnNames": [ "routeId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_Trip_routeId` ON `${TABLE_NAME}` (`routeId`)" } ], "foreignKeys": [ { "table": "Route", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "routeId" ], "referencedColumns": [ "id" ] }, { "table": "Shape", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "shapeId" ], "referencedColumns": [ "id" ] } ] }, { "tableName": "VersionMetadata", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` TEXT NOT NULL, `lastUpdated` INTEGER NOT NULL, PRIMARY KEY(`type`))", "fields": [ { "fieldPath": "type", "columnName": "type", "affinity": "TEXT", "notNull": true }, { "fieldPath": "lastUpdated", "columnName": "lastUpdated", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "type" ] } } ], "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, '15c94df0a62438ff28d451c074c94c59')" ] } }