{ "version": "6", "dialect": "sqlite", "id": "791dc197-5254-4432-bd9f-1368d1a5aa6a", "prevId": "00000000-0000-0000-0000-000000000000", "tables": { "printJob": { "name": "printJob", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true, "autoincrement": false }, "printerId": { "name": "printerId", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "userId": { "name": "userId", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "startAt": { "name": "startAt", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "durationInMinutes": { "name": "durationInMinutes", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "comments": { "name": "comments", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "aborted": { "name": "aborted", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false, "default": false }, "abortReason": { "name": "abortReason", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false } }, "indexes": {}, "foreignKeys": { "printJob_printerId_printer_id_fk": { "name": "printJob_printerId_printer_id_fk", "tableFrom": "printJob", "tableTo": "printer", "columnsFrom": [ "printerId" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "printJob_userId_user_id_fk": { "name": "printJob_userId_user_id_fk", "tableFrom": "printJob", "tableTo": "user", "columnsFrom": [ "userId" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {} }, "printer": { "name": "printer", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true, "autoincrement": false }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "status": { "name": "status", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false, "default": 0 } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {} }, "session": { "name": "session", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true, "autoincrement": false }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "expires_at": { "name": "expires_at", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": {}, "foreignKeys": { "session_user_id_user_id_fk": { "name": "session_user_id_user_id_fk", "tableFrom": "session", "tableTo": "user", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {} }, "user": { "name": "user", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true, "autoincrement": false }, "github_id": { "name": "github_id", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "displayName": { "name": "displayName", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "email": { "name": "email", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "role": { "name": "role", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false, "default": "'guest'" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {} } }, "enums": {}, "_meta": { "schemas": {}, "tables": {}, "columns": {} } }