161 lines
3.6 KiB
JSON
161 lines
3.6 KiB
JSON
{
|
|
"version": "6",
|
|
"dialect": "sqlite",
|
|
"id": "2c470a78-d3d6-49b7-910c-eb8156e58a2c",
|
|
"prevId": "00000000-0000-0000-0000-000000000000",
|
|
"tables": {
|
|
"games": {
|
|
"name": "games",
|
|
"columns": {
|
|
"uuid": {
|
|
"name": "uuid",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true,
|
|
"autoincrement": false
|
|
},
|
|
"user": {
|
|
"name": "user",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"autoincrement": false
|
|
},
|
|
"gameState": {
|
|
"name": "gameState",
|
|
"type": "blob",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"autoincrement": false
|
|
},
|
|
"stage": {
|
|
"name": "stage",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"autoincrement": false
|
|
},
|
|
"finished": {
|
|
"name": "finished",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"autoincrement": false,
|
|
"default": 0
|
|
},
|
|
"timestamp": {
|
|
"name": "timestamp",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"autoincrement": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"user_idx": {
|
|
"name": "user_idx",
|
|
"columns": [
|
|
"user"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"started_idx": {
|
|
"name": "started_idx",
|
|
"columns": [
|
|
"timestamp"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"user_started_idx": {
|
|
"name": "user_started_idx",
|
|
"columns": [
|
|
"user",
|
|
"timestamp"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"full_idx": {
|
|
"name": "full_idx",
|
|
"columns": [
|
|
"user",
|
|
"timestamp",
|
|
"uuid"
|
|
],
|
|
"isUnique": false
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"games_user_users_name_fk": {
|
|
"name": "games_user_users_name_fk",
|
|
"tableFrom": "games",
|
|
"tableTo": "users",
|
|
"columnsFrom": [
|
|
"user"
|
|
],
|
|
"columnsTo": [
|
|
"name"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {}
|
|
},
|
|
"users": {
|
|
"name": "users",
|
|
"columns": {
|
|
"name": {
|
|
"name": "name",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true,
|
|
"autoincrement": false
|
|
},
|
|
"password": {
|
|
"name": "password",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"autoincrement": false
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {}
|
|
},
|
|
"userSettings": {
|
|
"name": "userSettings",
|
|
"columns": {
|
|
"user": {
|
|
"name": "user",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true,
|
|
"autoincrement": false
|
|
},
|
|
"settings": {
|
|
"name": "settings",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"autoincrement": false
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {}
|
|
}
|
|
},
|
|
"enums": {},
|
|
"_meta": {
|
|
"schemas": {},
|
|
"tables": {},
|
|
"columns": {}
|
|
},
|
|
"internal": {
|
|
"indexes": {}
|
|
}
|
|
} |