mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-02-06 19:41:35 -05:00
refactor: upgrade to drizzle v1 (#450)
* refactor: move migrations to new structure * refactor: convert all findMany to new structure * fix(backups-schedule): missing null matching for last backup status * chore: move root lib to server
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { createAuthClient } from "better-auth/react";
|
||||
import { twoFactorClient, usernameClient, adminClient, organizationClient } from "better-auth/client/plugins";
|
||||
import { inferAdditionalFields } from "better-auth/client/plugins";
|
||||
import type { auth } from "~/lib/auth";
|
||||
import type { auth } from "~/server/lib/auth";
|
||||
|
||||
export const authClient = createAuthClient({
|
||||
plugins: [
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"dialect": "sqlite",
|
||||
"id": "f4a793d2-279b-4688-bbe3-2b69673fa7fa",
|
||||
"prevIds": [
|
||||
"00000000-0000-0000-0000-000000000000"
|
||||
],
|
||||
"version": "7",
|
||||
"ddl": [
|
||||
{
|
||||
"name": "volumes_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "volumes_table_pk",
|
||||
"table": "volumes_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_name_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
}
|
||||
],
|
||||
"renames": []
|
||||
}
|
||||
108
app/drizzle/20250821112357_far_frank_castle/snapshot.json
Normal file
108
app/drizzle/20250821112357_far_frank_castle/snapshot.json
Normal file
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"dialect": "sqlite",
|
||||
"id": "004e25a0-ecda-4b1a-aeab-46c8f78d5275",
|
||||
"prevIds": [
|
||||
"f4a793d2-279b-4688-bbe3-2b69673fa7fa"
|
||||
],
|
||||
"version": "7",
|
||||
"ddl": [
|
||||
{
|
||||
"name": "volumes_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "volumes_table_pk",
|
||||
"table": "volumes_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "path",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(current_timestamp)",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(current_timestamp)",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_name_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
}
|
||||
],
|
||||
"renames": []
|
||||
}
|
||||
138
app/drizzle/20250903201554_cheerful_randall/snapshot.json
Normal file
138
app/drizzle/20250903201554_cheerful_randall/snapshot.json
Normal file
@@ -0,0 +1,138 @@
|
||||
{
|
||||
"dialect": "sqlite",
|
||||
"id": "00a82d1d-4745-4487-83e4-42bb7aaa3e95",
|
||||
"prevIds": [
|
||||
"004e25a0-ecda-4b1a-aeab-46c8f78d5275"
|
||||
],
|
||||
"version": "7",
|
||||
"ddl": [
|
||||
{
|
||||
"name": "volumes_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "volumes_table_pk",
|
||||
"table": "volumes_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "path",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "last_health_check",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_name_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
}
|
||||
],
|
||||
"renames": []
|
||||
}
|
||||
148
app/drizzle/20250923185007_mature_hellcat/snapshot.json
Normal file
148
app/drizzle/20250923185007_mature_hellcat/snapshot.json
Normal file
@@ -0,0 +1,148 @@
|
||||
{
|
||||
"dialect": "sqlite",
|
||||
"id": "b7f1ccb8-7bb3-486f-a103-b95b331a121f",
|
||||
"prevIds": [
|
||||
"00a82d1d-4745-4487-83e4-42bb7aaa3e95"
|
||||
],
|
||||
"version": "7",
|
||||
"ddl": [
|
||||
{
|
||||
"name": "volumes_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "volumes_table_pk",
|
||||
"table": "volumes_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "path",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "last_health_check",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "1",
|
||||
"generated": null,
|
||||
"name": "auto_remount",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_name_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
}
|
||||
],
|
||||
"renames": []
|
||||
}
|
||||
148
app/drizzle/20250927082535_wealthy_tomas/snapshot.json
Normal file
148
app/drizzle/20250927082535_wealthy_tomas/snapshot.json
Normal file
@@ -0,0 +1,148 @@
|
||||
{
|
||||
"dialect": "sqlite",
|
||||
"id": "0b087a68-fbc6-4647-a6dc-e6322a3d4ee3",
|
||||
"prevIds": [
|
||||
"b7f1ccb8-7bb3-486f-a103-b95b331a121f"
|
||||
],
|
||||
"version": "7",
|
||||
"ddl": [
|
||||
{
|
||||
"name": "volumes_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "volumes_table_pk",
|
||||
"table": "volumes_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "path",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "last_health_check",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "auto_remount",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_name_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
}
|
||||
],
|
||||
"renames": []
|
||||
}
|
||||
293
app/drizzle/20251002145138_simple_alice/snapshot.json
Normal file
293
app/drizzle/20251002145138_simple_alice/snapshot.json
Normal file
@@ -0,0 +1,293 @@
|
||||
{
|
||||
"dialect": "sqlite",
|
||||
"id": "75f0aac0-aa63-4577-bfb6-4638a008935f",
|
||||
"prevIds": [
|
||||
"0b087a68-fbc6-4647-a6dc-e6322a3d4ee3"
|
||||
],
|
||||
"version": "7",
|
||||
"ddl": [
|
||||
{
|
||||
"name": "sessions_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_pk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "user_id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "expires_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "users_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_user_id_users_table_id_fk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "users_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "users_table_pk",
|
||||
"table": "users_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "username",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "password_hash",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "username",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "users_table_username_unique",
|
||||
"table": "users_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "volumes_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "volumes_table_pk",
|
||||
"table": "volumes_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "path",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "last_health_check",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "auto_remount",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_name_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
}
|
||||
],
|
||||
"renames": []
|
||||
}
|
||||
410
app/drizzle/20251017205257_secret_micromacro/snapshot.json
Normal file
410
app/drizzle/20251017205257_secret_micromacro/snapshot.json
Normal file
@@ -0,0 +1,410 @@
|
||||
{
|
||||
"dialect": "sqlite",
|
||||
"id": "16f360b6-fb61-44f3-a7f7-2bae78ebf7ca",
|
||||
"prevIds": [
|
||||
"75f0aac0-aa63-4577-bfb6-4638a008935f"
|
||||
],
|
||||
"version": "7",
|
||||
"ddl": [
|
||||
{
|
||||
"name": "repositories_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "repositories_table_pk",
|
||||
"table": "repositories_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "backend",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'auto'",
|
||||
"generated": null,
|
||||
"name": "compression_mode",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'unknown'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_checked",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "repositories_table_name_unique",
|
||||
"table": "repositories_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "sessions_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_pk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "user_id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "expires_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "users_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_user_id_users_table_id_fk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "users_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "users_table_pk",
|
||||
"table": "users_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "username",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "password_hash",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "username",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "users_table_username_unique",
|
||||
"table": "users_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "volumes_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "volumes_table_pk",
|
||||
"table": "volumes_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "last_health_check",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "auto_remount",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_name_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
}
|
||||
],
|
||||
"renames": []
|
||||
}
|
||||
412
app/drizzle/20251023130831_watery_sersi/snapshot.json
Normal file
412
app/drizzle/20251023130831_watery_sersi/snapshot.json
Normal file
@@ -0,0 +1,412 @@
|
||||
{
|
||||
"dialect": "sqlite",
|
||||
"id": "866b1d3b-454b-4cf7-9835-a0f60d048b6e",
|
||||
"prevIds": [
|
||||
"16f360b6-fb61-44f3-a7f7-2bae78ebf7ca"
|
||||
],
|
||||
"version": "7",
|
||||
"ddl": [
|
||||
{
|
||||
"name": "repositories_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "repositories_table_pk",
|
||||
"table": "repositories_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'auto'",
|
||||
"generated": null,
|
||||
"name": "compression_mode",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'unknown'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_checked",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "repositories_table_name_unique",
|
||||
"table": "repositories_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "sessions_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_pk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "user_id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "expires_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "users_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_user_id_users_table_id_fk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "users_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "users_table_pk",
|
||||
"table": "users_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "username",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "password_hash",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "username",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "users_table_username_unique",
|
||||
"table": "users_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "volumes_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "volumes_table_pk",
|
||||
"table": "volumes_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "last_health_check",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "auto_remount",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_name_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
}
|
||||
],
|
||||
"renames": [
|
||||
"\"repositories_table\".\"backend\"->\"repositories_table\".\"type\""
|
||||
]
|
||||
}
|
||||
607
app/drizzle/20251025174054_silent_lady_bullseye/snapshot.json
Normal file
607
app/drizzle/20251025174054_silent_lady_bullseye/snapshot.json
Normal file
@@ -0,0 +1,607 @@
|
||||
{
|
||||
"dialect": "sqlite",
|
||||
"id": "6e35f329-5431-47fd-8862-8fb06b0afe4b",
|
||||
"prevIds": [
|
||||
"866b1d3b-454b-4cf7-9835-a0f60d048b6e"
|
||||
],
|
||||
"version": "7",
|
||||
"ddl": [
|
||||
{
|
||||
"name": "backup_schedules_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_pk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "volume_id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "repository_id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "enabled",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "cron_expression",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "retention_policy",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'",
|
||||
"generated": null,
|
||||
"name": "exclude_patterns",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'",
|
||||
"generated": null,
|
||||
"name": "include_patterns",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_status",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_error",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "next_backup_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "volume_id",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "backup_schedules_table_volume_id_unique",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"volume_id"
|
||||
],
|
||||
"tableTo": "volumes_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_volume_id_volumes_table_id_fk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"repository_id"
|
||||
],
|
||||
"tableTo": "repositories_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_repository_id_repositories_table_id_fk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "repositories_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "repositories_table_pk",
|
||||
"table": "repositories_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'auto'",
|
||||
"generated": null,
|
||||
"name": "compression_mode",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'unknown'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_checked",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "repositories_table_name_unique",
|
||||
"table": "repositories_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "sessions_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_pk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "user_id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "expires_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "users_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_user_id_users_table_id_fk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "users_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "users_table_pk",
|
||||
"table": "users_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "username",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "password_hash",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "username",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "users_table_username_unique",
|
||||
"table": "users_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "volumes_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "volumes_table_pk",
|
||||
"table": "volumes_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "last_health_check",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "auto_remount",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_name_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
}
|
||||
],
|
||||
"renames": []
|
||||
}
|
||||
593
app/drizzle/20251102145346_little_adam_warlock/snapshot.json
Normal file
593
app/drizzle/20251102145346_little_adam_warlock/snapshot.json
Normal file
@@ -0,0 +1,593 @@
|
||||
{
|
||||
"dialect": "sqlite",
|
||||
"id": "6a326ac0-cb3a-4c63-8800-bc86d18e0c1d",
|
||||
"prevIds": [
|
||||
"6e35f329-5431-47fd-8862-8fb06b0afe4b"
|
||||
],
|
||||
"version": "7",
|
||||
"ddl": [
|
||||
{
|
||||
"name": "backup_schedules_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_pk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "volume_id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "repository_id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "enabled",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "cron_expression",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "retention_policy",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'",
|
||||
"generated": null,
|
||||
"name": "exclude_patterns",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'",
|
||||
"generated": null,
|
||||
"name": "include_patterns",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_status",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_error",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "next_backup_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"volume_id"
|
||||
],
|
||||
"tableTo": "volumes_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_volume_id_volumes_table_id_fk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"repository_id"
|
||||
],
|
||||
"tableTo": "repositories_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_repository_id_repositories_table_id_fk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "repositories_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "repositories_table_pk",
|
||||
"table": "repositories_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'auto'",
|
||||
"generated": null,
|
||||
"name": "compression_mode",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'unknown'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_checked",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "repositories_table_name_unique",
|
||||
"table": "repositories_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "sessions_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_pk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "user_id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "expires_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "users_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_user_id_users_table_id_fk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "users_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "users_table_pk",
|
||||
"table": "users_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "username",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "password_hash",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "username",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "users_table_username_unique",
|
||||
"table": "users_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "volumes_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "volumes_table_pk",
|
||||
"table": "volumes_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "last_health_check",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "auto_remount",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_name_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
}
|
||||
],
|
||||
"renames": []
|
||||
}
|
||||
603
app/drizzle/20251108135425_perfect_proemial_gods/snapshot.json
Normal file
603
app/drizzle/20251108135425_perfect_proemial_gods/snapshot.json
Normal file
@@ -0,0 +1,603 @@
|
||||
{
|
||||
"dialect": "sqlite",
|
||||
"id": "17f234ba-4123-4951-a39f-6002d537435f",
|
||||
"prevIds": [
|
||||
"6a326ac0-cb3a-4c63-8800-bc86d18e0c1d"
|
||||
],
|
||||
"version": "7",
|
||||
"ddl": [
|
||||
{
|
||||
"name": "backup_schedules_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_pk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "volume_id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "repository_id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "enabled",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "cron_expression",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "retention_policy",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'",
|
||||
"generated": null,
|
||||
"name": "exclude_patterns",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'",
|
||||
"generated": null,
|
||||
"name": "include_patterns",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_status",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_error",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "next_backup_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"volume_id"
|
||||
],
|
||||
"tableTo": "volumes_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_volume_id_volumes_table_id_fk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"repository_id"
|
||||
],
|
||||
"tableTo": "repositories_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_repository_id_repositories_table_id_fk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "repositories_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "repositories_table_pk",
|
||||
"table": "repositories_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'auto'",
|
||||
"generated": null,
|
||||
"name": "compression_mode",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'unknown'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_checked",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "repositories_table_name_unique",
|
||||
"table": "repositories_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "sessions_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_pk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "user_id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "expires_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "users_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_user_id_users_table_id_fk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "users_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "users_table_pk",
|
||||
"table": "users_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "username",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "password_hash",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "has_downloaded_restic_password",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "username",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "users_table_username_unique",
|
||||
"table": "users_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "volumes_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "volumes_table_pk",
|
||||
"table": "volumes_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "last_health_check",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "auto_remount",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_name_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
}
|
||||
],
|
||||
"renames": []
|
||||
}
|
||||
804
app/drizzle/20251120130723_familiar_stone_men/snapshot.json
Normal file
804
app/drizzle/20251120130723_familiar_stone_men/snapshot.json
Normal file
@@ -0,0 +1,804 @@
|
||||
{
|
||||
"dialect": "sqlite",
|
||||
"id": "67552135-fa49-478f-9333-107d3dbd7610",
|
||||
"prevIds": [
|
||||
"17f234ba-4123-4951-a39f-6002d537435f"
|
||||
],
|
||||
"version": "7",
|
||||
"ddl": [
|
||||
{
|
||||
"name": "backup_schedule_notifications_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "schedule_id",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "destination_id",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "notify_on_start",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "notify_on_success",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "notify_on_failure",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"schedule_id",
|
||||
"destination_id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedule_notifications_table_schedule_id_destination_id_pk",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"schedule_id"
|
||||
],
|
||||
"tableTo": "backup_schedules_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedule_notifications_table_schedule_id_backup_schedules_table_id_fk",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"destination_id"
|
||||
],
|
||||
"tableTo": "notification_destinations_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedule_notifications_table_destination_id_notification_destinations_table_id_fk",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "backup_schedules_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_pk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "volume_id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "repository_id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "enabled",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "cron_expression",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "retention_policy",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'",
|
||||
"generated": null,
|
||||
"name": "exclude_patterns",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'",
|
||||
"generated": null,
|
||||
"name": "include_patterns",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_status",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_error",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "next_backup_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"volume_id"
|
||||
],
|
||||
"tableTo": "volumes_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_volume_id_volumes_table_id_fk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"repository_id"
|
||||
],
|
||||
"tableTo": "repositories_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_repository_id_repositories_table_id_fk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "notification_destinations_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "notification_destinations_table_pk",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "enabled",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "notification_destinations_table_name_unique",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "repositories_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "repositories_table_pk",
|
||||
"table": "repositories_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'auto'",
|
||||
"generated": null,
|
||||
"name": "compression_mode",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'unknown'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_checked",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "repositories_table_name_unique",
|
||||
"table": "repositories_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "sessions_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_pk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "user_id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "expires_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "users_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_user_id_users_table_id_fk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "users_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "users_table_pk",
|
||||
"table": "users_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "username",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "password_hash",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "has_downloaded_restic_password",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "username",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "users_table_username_unique",
|
||||
"table": "users_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "volumes_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "volumes_table_pk",
|
||||
"table": "volumes_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "last_health_check",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "auto_remount",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_name_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
}
|
||||
],
|
||||
"renames": []
|
||||
}
|
||||
852
app/drizzle/20251125195602_add_short_ids/snapshot.json
Normal file
852
app/drizzle/20251125195602_add_short_ids/snapshot.json
Normal file
@@ -0,0 +1,852 @@
|
||||
{
|
||||
"dialect": "sqlite",
|
||||
"id": "bbca8451-3894-4556-9824-c309b5105628",
|
||||
"prevIds": [
|
||||
"67552135-fa49-478f-9333-107d3dbd7610"
|
||||
],
|
||||
"version": "7",
|
||||
"ddl": [
|
||||
{
|
||||
"name": "backup_schedule_notifications_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "schedule_id",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "destination_id",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "notify_on_start",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "notify_on_success",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "notify_on_failure",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"schedule_id",
|
||||
"destination_id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedule_notifications_table_schedule_id_destination_id_pk",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"schedule_id"
|
||||
],
|
||||
"tableTo": "backup_schedules_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedule_notifications_table_schedule_id_backup_schedules_table_id_fk",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"destination_id"
|
||||
],
|
||||
"tableTo": "notification_destinations_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedule_notifications_table_destination_id_notification_destinations_table_id_fk",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "backup_schedules_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_pk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "volume_id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "repository_id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "enabled",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "cron_expression",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "retention_policy",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'",
|
||||
"generated": null,
|
||||
"name": "exclude_patterns",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'",
|
||||
"generated": null,
|
||||
"name": "include_patterns",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_status",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_error",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "next_backup_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"volume_id"
|
||||
],
|
||||
"tableTo": "volumes_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_volume_id_volumes_table_id_fk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"repository_id"
|
||||
],
|
||||
"tableTo": "repositories_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_repository_id_repositories_table_id_fk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "notification_destinations_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "notification_destinations_table_pk",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "enabled",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "notification_destinations_table_name_unique",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "repositories_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "repositories_table_pk",
|
||||
"table": "repositories_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "short_id",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'auto'",
|
||||
"generated": null,
|
||||
"name": "compression_mode",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'unknown'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_checked",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "short_id",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "repositories_table_short_id_unique",
|
||||
"table": "repositories_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "repositories_table_name_unique",
|
||||
"table": "repositories_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "sessions_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_pk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "user_id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "expires_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "users_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_user_id_users_table_id_fk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "users_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "users_table_pk",
|
||||
"table": "users_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "username",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "password_hash",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "has_downloaded_restic_password",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "username",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "users_table_username_unique",
|
||||
"table": "users_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "volumes_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "volumes_table_pk",
|
||||
"table": "volumes_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "short_id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "last_health_check",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "auto_remount",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "short_id",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_short_id_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_name_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
}
|
||||
],
|
||||
"renames": []
|
||||
}
|
||||
905
app/drizzle/20251126183559_elite_sprite/snapshot.json
Normal file
905
app/drizzle/20251126183559_elite_sprite/snapshot.json
Normal file
@@ -0,0 +1,905 @@
|
||||
{
|
||||
"dialect": "sqlite",
|
||||
"id": "794bddf6-1978-46e4-88d5-051d76cfa2f6",
|
||||
"prevIds": [
|
||||
"bbca8451-3894-4556-9824-c309b5105628"
|
||||
],
|
||||
"version": "7",
|
||||
"ddl": [
|
||||
{
|
||||
"name": "app_metadata",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "key",
|
||||
"table": "app_metadata",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"key"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "app_metadata_pk",
|
||||
"table": "app_metadata",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "value",
|
||||
"table": "app_metadata",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "app_metadata",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "app_metadata",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"name": "backup_schedule_notifications_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "schedule_id",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "destination_id",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "notify_on_start",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "notify_on_success",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "notify_on_failure",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"schedule_id",
|
||||
"destination_id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedule_notifications_table_schedule_id_destination_id_pk",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"schedule_id"
|
||||
],
|
||||
"tableTo": "backup_schedules_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedule_notifications_table_schedule_id_backup_schedules_table_id_fk",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"destination_id"
|
||||
],
|
||||
"tableTo": "notification_destinations_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedule_notifications_table_destination_id_notification_destinations_table_id_fk",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "backup_schedules_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_pk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "volume_id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "repository_id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "enabled",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "cron_expression",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "retention_policy",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'",
|
||||
"generated": null,
|
||||
"name": "exclude_patterns",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'",
|
||||
"generated": null,
|
||||
"name": "include_patterns",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_status",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_error",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "next_backup_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"volume_id"
|
||||
],
|
||||
"tableTo": "volumes_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_volume_id_volumes_table_id_fk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"repository_id"
|
||||
],
|
||||
"tableTo": "repositories_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_repository_id_repositories_table_id_fk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "notification_destinations_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "notification_destinations_table_pk",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "enabled",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "notification_destinations_table_name_unique",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "repositories_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "repositories_table_pk",
|
||||
"table": "repositories_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "short_id",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'auto'",
|
||||
"generated": null,
|
||||
"name": "compression_mode",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'unknown'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_checked",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "short_id",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "repositories_table_short_id_unique",
|
||||
"table": "repositories_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "repositories_table_name_unique",
|
||||
"table": "repositories_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "sessions_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_pk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "user_id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "expires_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "users_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_user_id_users_table_id_fk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "users_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "users_table_pk",
|
||||
"table": "users_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "username",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "password_hash",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "has_downloaded_restic_password",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "username",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "users_table_username_unique",
|
||||
"table": "users_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "volumes_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "volumes_table_pk",
|
||||
"table": "volumes_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "short_id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "last_health_check",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "auto_remount",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "short_id",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_short_id_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_name_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
}
|
||||
],
|
||||
"renames": []
|
||||
}
|
||||
905
app/drizzle/20251126184005_wild_echo/snapshot.json
Normal file
905
app/drizzle/20251126184005_wild_echo/snapshot.json
Normal file
@@ -0,0 +1,905 @@
|
||||
{
|
||||
"dialect": "sqlite",
|
||||
"id": "05309ea5-8ef2-4d63-b3d2-9842b2b4111b",
|
||||
"prevIds": [
|
||||
"794bddf6-1978-46e4-88d5-051d76cfa2f6"
|
||||
],
|
||||
"version": "7",
|
||||
"ddl": [
|
||||
{
|
||||
"name": "app_metadata",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "key",
|
||||
"table": "app_metadata",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"key"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "app_metadata_pk",
|
||||
"table": "app_metadata",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "value",
|
||||
"table": "app_metadata",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "app_metadata",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "app_metadata",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"name": "backup_schedule_notifications_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "schedule_id",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "destination_id",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "notify_on_start",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "notify_on_success",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "notify_on_failure",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"schedule_id",
|
||||
"destination_id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedule_notifications_table_schedule_id_destination_id_pk",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"schedule_id"
|
||||
],
|
||||
"tableTo": "backup_schedules_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedule_notifications_table_schedule_id_backup_schedules_table_id_fk",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"destination_id"
|
||||
],
|
||||
"tableTo": "notification_destinations_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedule_notifications_table_destination_id_notification_destinations_table_id_fk",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "backup_schedules_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_pk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "volume_id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "repository_id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "enabled",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "cron_expression",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "retention_policy",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'",
|
||||
"generated": null,
|
||||
"name": "exclude_patterns",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'",
|
||||
"generated": null,
|
||||
"name": "include_patterns",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_status",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_error",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "next_backup_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"volume_id"
|
||||
],
|
||||
"tableTo": "volumes_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_volume_id_volumes_table_id_fk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"repository_id"
|
||||
],
|
||||
"tableTo": "repositories_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_repository_id_repositories_table_id_fk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "notification_destinations_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "notification_destinations_table_pk",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "enabled",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "notification_destinations_table_name_unique",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "repositories_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "repositories_table_pk",
|
||||
"table": "repositories_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "short_id",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'auto'",
|
||||
"generated": null,
|
||||
"name": "compression_mode",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'unknown'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_checked",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "short_id",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "repositories_table_short_id_unique",
|
||||
"table": "repositories_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "repositories_table_name_unique",
|
||||
"table": "repositories_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "sessions_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_pk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "user_id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "expires_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "users_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_user_id_users_table_id_fk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "users_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "users_table_pk",
|
||||
"table": "users_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "username",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "password_hash",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "has_downloaded_restic_password",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "username",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "users_table_username_unique",
|
||||
"table": "users_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "volumes_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "volumes_table_pk",
|
||||
"table": "volumes_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "short_id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "last_health_check",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "auto_remount",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "short_id",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_short_id_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_name_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
}
|
||||
],
|
||||
"renames": []
|
||||
}
|
||||
905
app/drizzle/20251126184105_jazzy_sersi/snapshot.json
Normal file
905
app/drizzle/20251126184105_jazzy_sersi/snapshot.json
Normal file
@@ -0,0 +1,905 @@
|
||||
{
|
||||
"dialect": "sqlite",
|
||||
"id": "e52fe10a-3f36-4b21-abef-c15990d28363",
|
||||
"prevIds": [
|
||||
"05309ea5-8ef2-4d63-b3d2-9842b2b4111b"
|
||||
],
|
||||
"version": "7",
|
||||
"ddl": [
|
||||
{
|
||||
"name": "app_metadata",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "key",
|
||||
"table": "app_metadata",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"key"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "app_metadata_pk",
|
||||
"table": "app_metadata",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "value",
|
||||
"table": "app_metadata",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "app_metadata",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "app_metadata",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"name": "backup_schedule_notifications_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "schedule_id",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "destination_id",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "notify_on_start",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "notify_on_success",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "notify_on_failure",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"schedule_id",
|
||||
"destination_id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedule_notifications_table_schedule_id_destination_id_pk",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"schedule_id"
|
||||
],
|
||||
"tableTo": "backup_schedules_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedule_notifications_table_schedule_id_backup_schedules_table_id_fk",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"destination_id"
|
||||
],
|
||||
"tableTo": "notification_destinations_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedule_notifications_table_destination_id_notification_destinations_table_id_fk",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "backup_schedules_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_pk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "volume_id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "repository_id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "enabled",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "cron_expression",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "retention_policy",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'",
|
||||
"generated": null,
|
||||
"name": "exclude_patterns",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'",
|
||||
"generated": null,
|
||||
"name": "include_patterns",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_status",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_error",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "next_backup_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"volume_id"
|
||||
],
|
||||
"tableTo": "volumes_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_volume_id_volumes_table_id_fk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"repository_id"
|
||||
],
|
||||
"tableTo": "repositories_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_repository_id_repositories_table_id_fk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "notification_destinations_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "notification_destinations_table_pk",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "enabled",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "notification_destinations_table_name_unique",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "repositories_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "repositories_table_pk",
|
||||
"table": "repositories_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "short_id",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'auto'",
|
||||
"generated": null,
|
||||
"name": "compression_mode",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'unknown'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_checked",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "short_id",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "repositories_table_short_id_unique",
|
||||
"table": "repositories_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "repositories_table_name_unique",
|
||||
"table": "repositories_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "sessions_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_pk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "user_id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "expires_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "users_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_user_id_users_table_id_fk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "users_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "users_table_pk",
|
||||
"table": "users_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "username",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "password_hash",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "has_downloaded_restic_password",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "username",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "users_table_username_unique",
|
||||
"table": "users_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "volumes_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "volumes_table_pk",
|
||||
"table": "volumes_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "short_id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "last_health_check",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "auto_remount",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "short_id",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_short_id_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_name_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
}
|
||||
],
|
||||
"renames": []
|
||||
}
|
||||
905
app/drizzle/20251126220457_fix-timestamps-to-ms/snapshot.json
Normal file
905
app/drizzle/20251126220457_fix-timestamps-to-ms/snapshot.json
Normal file
@@ -0,0 +1,905 @@
|
||||
{
|
||||
"dialect": "sqlite",
|
||||
"id": "e50ff0fb-4111-4d20-b550-9407ee397517",
|
||||
"prevIds": [
|
||||
"e52fe10a-3f36-4b21-abef-c15990d28363"
|
||||
],
|
||||
"version": "7",
|
||||
"ddl": [
|
||||
{
|
||||
"name": "app_metadata",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "key",
|
||||
"table": "app_metadata",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"key"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "app_metadata_pk",
|
||||
"table": "app_metadata",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "value",
|
||||
"table": "app_metadata",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "app_metadata",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "app_metadata",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"name": "backup_schedule_notifications_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "schedule_id",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "destination_id",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "notify_on_start",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "notify_on_success",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "notify_on_failure",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"schedule_id",
|
||||
"destination_id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedule_notifications_table_schedule_id_destination_id_pk",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"schedule_id"
|
||||
],
|
||||
"tableTo": "backup_schedules_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedule_notifications_table_schedule_id_backup_schedules_table_id_fk",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"destination_id"
|
||||
],
|
||||
"tableTo": "notification_destinations_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedule_notifications_table_destination_id_notification_destinations_table_id_fk",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "backup_schedules_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_pk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "volume_id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "repository_id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "enabled",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "cron_expression",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "retention_policy",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'",
|
||||
"generated": null,
|
||||
"name": "exclude_patterns",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'",
|
||||
"generated": null,
|
||||
"name": "include_patterns",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_status",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_error",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "next_backup_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"volume_id"
|
||||
],
|
||||
"tableTo": "volumes_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_volume_id_volumes_table_id_fk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"repository_id"
|
||||
],
|
||||
"tableTo": "repositories_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_repository_id_repositories_table_id_fk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "notification_destinations_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "notification_destinations_table_pk",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "enabled",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "notification_destinations_table_name_unique",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "repositories_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "repositories_table_pk",
|
||||
"table": "repositories_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "short_id",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'auto'",
|
||||
"generated": null,
|
||||
"name": "compression_mode",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'unknown'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_checked",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "short_id",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "repositories_table_short_id_unique",
|
||||
"table": "repositories_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "repositories_table_name_unique",
|
||||
"table": "repositories_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "sessions_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_pk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "user_id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "expires_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "users_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_user_id_users_table_id_fk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "users_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "users_table_pk",
|
||||
"table": "users_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "username",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "password_hash",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "has_downloaded_restic_password",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "username",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "users_table_username_unique",
|
||||
"table": "users_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "volumes_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "volumes_table_pk",
|
||||
"table": "volumes_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "short_id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "last_health_check",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "auto_remount",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "short_id",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_short_id_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_name_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
}
|
||||
],
|
||||
"renames": []
|
||||
}
|
||||
905
app/drizzle/20251128192457_fix-compression-modes/snapshot.json
Normal file
905
app/drizzle/20251128192457_fix-compression-modes/snapshot.json
Normal file
@@ -0,0 +1,905 @@
|
||||
{
|
||||
"dialect": "sqlite",
|
||||
"id": "d0bfd316-b8f5-459b-ab17-0ce679479321",
|
||||
"prevIds": [
|
||||
"e50ff0fb-4111-4d20-b550-9407ee397517"
|
||||
],
|
||||
"version": "7",
|
||||
"ddl": [
|
||||
{
|
||||
"name": "app_metadata",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "key",
|
||||
"table": "app_metadata",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"key"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "app_metadata_pk",
|
||||
"table": "app_metadata",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "value",
|
||||
"table": "app_metadata",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "app_metadata",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "app_metadata",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"name": "backup_schedule_notifications_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "schedule_id",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "destination_id",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "notify_on_start",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "notify_on_success",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "notify_on_failure",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"schedule_id",
|
||||
"destination_id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedule_notifications_table_schedule_id_destination_id_pk",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"schedule_id"
|
||||
],
|
||||
"tableTo": "backup_schedules_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedule_notifications_table_schedule_id_backup_schedules_table_id_fk",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"destination_id"
|
||||
],
|
||||
"tableTo": "notification_destinations_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedule_notifications_table_destination_id_notification_destinations_table_id_fk",
|
||||
"table": "backup_schedule_notifications_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "backup_schedules_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_pk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "volume_id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "repository_id",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "enabled",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "cron_expression",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "retention_policy",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'",
|
||||
"generated": null,
|
||||
"name": "exclude_patterns",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'",
|
||||
"generated": null,
|
||||
"name": "include_patterns",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_status",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_backup_error",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "next_backup_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"volume_id"
|
||||
],
|
||||
"tableTo": "volumes_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_volume_id_volumes_table_id_fk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"repository_id"
|
||||
],
|
||||
"tableTo": "repositories_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "backup_schedules_table_repository_id_repositories_table_id_fk",
|
||||
"table": "backup_schedules_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "notification_destinations_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "notification_destinations_table_pk",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "enabled",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "notification_destinations_table_name_unique",
|
||||
"table": "notification_destinations_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "repositories_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "repositories_table_pk",
|
||||
"table": "repositories_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "short_id",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'auto'",
|
||||
"generated": null,
|
||||
"name": "compression_mode",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'unknown'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_checked",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "repositories_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "short_id",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "repositories_table_short_id_unique",
|
||||
"table": "repositories_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "repositories_table_name_unique",
|
||||
"table": "repositories_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "sessions_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_pk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "user_id",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "expires_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "sessions_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"user_id"
|
||||
],
|
||||
"tableTo": "users_table",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "CASCADE",
|
||||
"nameExplicit": false,
|
||||
"name": "sessions_table_user_id_users_table_id_fk",
|
||||
"table": "sessions_table",
|
||||
"entityType": "fks"
|
||||
},
|
||||
{
|
||||
"name": "users_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "users_table_pk",
|
||||
"table": "users_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "username",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "password_hash",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "false",
|
||||
"generated": null,
|
||||
"name": "has_downloaded_restic_password",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "users_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "username",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "users_table_username_unique",
|
||||
"table": "users_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"name": "volumes_table",
|
||||
"entityType": "tables"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": false,
|
||||
"autoincrement": true,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"id"
|
||||
],
|
||||
"nameExplicit": false,
|
||||
"name": "volumes_table_pk",
|
||||
"table": "volumes_table",
|
||||
"entityType": "pks"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "short_id",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "name",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "type",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'",
|
||||
"generated": null,
|
||||
"name": "status",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "last_error",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "last_health_check",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "created_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())",
|
||||
"generated": null,
|
||||
"name": "updated_at",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"name": "config",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "true",
|
||||
"generated": null,
|
||||
"name": "auto_remount",
|
||||
"table": "volumes_table",
|
||||
"entityType": "columns"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "short_id",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_short_id_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"value": "name",
|
||||
"isExpression": false
|
||||
}
|
||||
],
|
||||
"isUnique": true,
|
||||
"where": null,
|
||||
"origin": "manual",
|
||||
"name": "volumes_table_name_unique",
|
||||
"table": "volumes_table",
|
||||
"entityType": "indexes"
|
||||
}
|
||||
],
|
||||
"renames": []
|
||||
}
|
||||
1046
app/drizzle/20251203203931_breezy_invaders/snapshot.json
Normal file
1046
app/drizzle/20251203203931_breezy_invaders/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1070
app/drizzle/20251204091837_secret_nomad/snapshot.json
Normal file
1070
app/drizzle/20251204091837_secret_nomad/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1080
app/drizzle/20251204113158_even_dexter_bennett/snapshot.json
Normal file
1080
app/drizzle/20251204113158_even_dexter_bennett/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1090
app/drizzle/20251209191801_steady_viper/snapshot.json
Normal file
1090
app/drizzle/20251209191801_steady_viper/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1100
app/drizzle/20251215102912_woozy_shen/snapshot.json
Normal file
1100
app/drizzle/20251215102912_woozy_shen/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1110
app/drizzle/20251221123610_special_thor/snapshot.json
Normal file
1110
app/drizzle/20251221123610_special_thor/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1110
app/drizzle/20251221135824_schedules-one-fs/snapshot.json
Normal file
1110
app/drizzle/20251221135824_schedules-one-fs/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1096
app/drizzle/20251222191701_remarkable_pete_wisdom/snapshot.json
Normal file
1096
app/drizzle/20251222191701_remarkable_pete_wisdom/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1096
app/drizzle/20251226160333_migrate-local-repo-paths/snapshot.json
Normal file
1096
app/drizzle/20251226160333_migrate-local-repo-paths/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1120
app/drizzle/20251226194113_careful_cammi/snapshot.json
Normal file
1120
app/drizzle/20251226194113_careful_cammi/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1120
app/drizzle/20251226194242_third_amazoness/snapshot.json
Normal file
1120
app/drizzle/20251226194242_third_amazoness/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1497
app/drizzle/20260107210443_boring_luke_cage/snapshot.json
Normal file
1497
app/drizzle/20260107210443_boring_luke_cage/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1497
app/drizzle/20260107212448_lower-trim-username/snapshot.json
Normal file
1497
app/drizzle/20260107212448_lower-trim-username/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1617
app/drizzle/20260108091911_graceful_squadron_supreme/snapshot.json
Normal file
1617
app/drizzle/20260108091911_graceful_squadron_supreme/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1617
app/drizzle/20260111130555_lowercase-email/snapshot.json
Normal file
1617
app/drizzle/20260111130555_lowercase-email/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1677
app/drizzle/20260115172247_chunky_tyrannus/snapshot.json
Normal file
1677
app/drizzle/20260115172247_chunky_tyrannus/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
2110
app/drizzle/20260117123552_slippery_mongu/snapshot.json
Normal file
2110
app/drizzle/20260117123552_slippery_mongu/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
2110
app/drizzle/20260117123722_default-admin-role/snapshot.json
Normal file
2110
app/drizzle/20260117123722_default-admin-role/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
2110
app/drizzle/20260117123940_create-default-org/snapshot.json
Normal file
2110
app/drizzle/20260117123940_create-default-org/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
2110
app/drizzle/20260117124944_create-default-member/snapshot.json
Normal file
2110
app/drizzle/20260117124944_create-default-member/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
2196
app/drizzle/20260117135738_shallow_pride/snapshot.json
Normal file
2196
app/drizzle/20260117135738_shallow_pride/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
2196
app/drizzle/20260117135919_backfill-entities-org-id/snapshot.json
Normal file
2196
app/drizzle/20260117135919_backfill-entities-org-id/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
2196
app/drizzle/20260117142004_tidy_maelstrom/snapshot.json
Normal file
2196
app/drizzle/20260117142004_tidy_maelstrom/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
2186
app/drizzle/20260117211628_motionless_storm/snapshot.json
Normal file
2186
app/drizzle/20260117211628_motionless_storm/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
2204
app/drizzle/20260117215923_watery_liz_osborn/snapshot.json
Normal file
2204
app/drizzle/20260117215923_watery_liz_osborn/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
2214
app/drizzle/20260122123111_overjoyed_shen/snapshot.json
Normal file
2214
app/drizzle/20260122123111_overjoyed_shen/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
153
app/drizzle/20260201174434_legal_sandman/migration.sql
Normal file
153
app/drizzle/20260201174434_legal_sandman/migration.sql
Normal file
@@ -0,0 +1,153 @@
|
||||
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
||||
CREATE TABLE `__new_backup_schedule_mirrors_table` (
|
||||
`id` integer PRIMARY KEY AUTOINCREMENT,
|
||||
`schedule_id` integer NOT NULL,
|
||||
`repository_id` text NOT NULL,
|
||||
`enabled` integer DEFAULT true NOT NULL,
|
||||
`last_copy_at` integer,
|
||||
`last_copy_status` text,
|
||||
`last_copy_error` text,
|
||||
`created_at` integer DEFAULT (unixepoch() * 1000) NOT NULL,
|
||||
CONSTRAINT `backup_schedule_mirrors_table_schedule_id_backup_schedules_table_id_fk` FOREIGN KEY (`schedule_id`) REFERENCES `backup_schedules_table`(`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `backup_schedule_mirrors_table_repository_id_repositories_table_id_fk` FOREIGN KEY (`repository_id`) REFERENCES `repositories_table`(`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `backup_schedule_mirrors_table_schedule_id_repository_id_unique` UNIQUE(`schedule_id`,`repository_id`)
|
||||
);
|
||||
--> statement-breakpoint
|
||||
INSERT INTO `__new_backup_schedule_mirrors_table`(`id`, `schedule_id`, `repository_id`, `enabled`, `last_copy_at`, `last_copy_status`, `last_copy_error`, `created_at`) SELECT `id`, `schedule_id`, `repository_id`, `enabled`, `last_copy_at`, `last_copy_status`, `last_copy_error`, `created_at` FROM `backup_schedule_mirrors_table`;--> statement-breakpoint
|
||||
DROP TABLE `backup_schedule_mirrors_table`;--> statement-breakpoint
|
||||
ALTER TABLE `__new_backup_schedule_mirrors_table` RENAME TO `backup_schedule_mirrors_table`;--> statement-breakpoint
|
||||
PRAGMA foreign_keys=ON;--> statement-breakpoint
|
||||
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
||||
CREATE TABLE `__new_volumes_table` (
|
||||
`id` integer PRIMARY KEY AUTOINCREMENT,
|
||||
`short_id` text NOT NULL UNIQUE,
|
||||
`name` text NOT NULL,
|
||||
`type` text NOT NULL,
|
||||
`status` text DEFAULT 'unmounted' NOT NULL,
|
||||
`last_error` text,
|
||||
`last_health_check` integer DEFAULT (unixepoch() * 1000) NOT NULL,
|
||||
`created_at` integer DEFAULT (unixepoch() * 1000) NOT NULL,
|
||||
`updated_at` integer DEFAULT (unixepoch() * 1000) NOT NULL,
|
||||
`config` text NOT NULL,
|
||||
`auto_remount` integer DEFAULT true NOT NULL,
|
||||
`organization_id` text NOT NULL,
|
||||
CONSTRAINT `volumes_table_organization_id_organization_id_fk` FOREIGN KEY (`organization_id`) REFERENCES `organization`(`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `volumes_table_name_organization_id_unique` UNIQUE(`name`,`organization_id`)
|
||||
);
|
||||
--> statement-breakpoint
|
||||
INSERT INTO `__new_volumes_table`(`id`, `short_id`, `name`, `type`, `status`, `last_error`, `last_health_check`, `created_at`, `updated_at`, `config`, `auto_remount`, `organization_id`) SELECT `id`, `short_id`, `name`, `type`, `status`, `last_error`, `last_health_check`, `created_at`, `updated_at`, `config`, `auto_remount`, `organization_id` FROM `volumes_table`;--> statement-breakpoint
|
||||
DROP TABLE `volumes_table`;--> statement-breakpoint
|
||||
ALTER TABLE `__new_volumes_table` RENAME TO `volumes_table`;--> statement-breakpoint
|
||||
PRAGMA foreign_keys=ON;--> statement-breakpoint
|
||||
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
||||
CREATE TABLE `__new_backup_schedules_table` (
|
||||
`id` integer PRIMARY KEY AUTOINCREMENT,
|
||||
`short_id` text NOT NULL UNIQUE,
|
||||
`name` text NOT NULL,
|
||||
`volume_id` integer NOT NULL,
|
||||
`repository_id` text NOT NULL,
|
||||
`enabled` integer DEFAULT true NOT NULL,
|
||||
`cron_expression` text NOT NULL,
|
||||
`retention_policy` text,
|
||||
`exclude_patterns` text DEFAULT '[]',
|
||||
`exclude_if_present` text DEFAULT '[]',
|
||||
`include_patterns` text DEFAULT '[]',
|
||||
`last_backup_at` integer,
|
||||
`last_backup_status` text,
|
||||
`last_backup_error` text,
|
||||
`next_backup_at` integer,
|
||||
`one_file_system` integer DEFAULT false NOT NULL,
|
||||
`sort_order` integer DEFAULT 0 NOT NULL,
|
||||
`created_at` integer DEFAULT (unixepoch() * 1000) NOT NULL,
|
||||
`updated_at` integer DEFAULT (unixepoch() * 1000) NOT NULL,
|
||||
`organization_id` text NOT NULL,
|
||||
CONSTRAINT `backup_schedules_table_volume_id_volumes_table_id_fk` FOREIGN KEY (`volume_id`) REFERENCES `volumes_table`(`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `backup_schedules_table_repository_id_repositories_table_id_fk` FOREIGN KEY (`repository_id`) REFERENCES `repositories_table`(`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `backup_schedules_table_organization_id_organization_id_fk` FOREIGN KEY (`organization_id`) REFERENCES `organization`(`id`) ON DELETE CASCADE
|
||||
);
|
||||
--> statement-breakpoint
|
||||
INSERT INTO `__new_backup_schedules_table`(`id`, `short_id`, `name`, `volume_id`, `repository_id`, `enabled`, `cron_expression`, `retention_policy`, `exclude_patterns`, `exclude_if_present`, `include_patterns`, `last_backup_at`, `last_backup_status`, `last_backup_error`, `next_backup_at`, `one_file_system`, `sort_order`, `created_at`, `updated_at`, `organization_id`) SELECT `id`, `short_id`, `name`, `volume_id`, `repository_id`, `enabled`, `cron_expression`, `retention_policy`, `exclude_patterns`, `exclude_if_present`, `include_patterns`, `last_backup_at`, `last_backup_status`, `last_backup_error`, `next_backup_at`, `one_file_system`, `sort_order`, `created_at`, `updated_at`, `organization_id` FROM `backup_schedules_table`;--> statement-breakpoint
|
||||
DROP TABLE `backup_schedules_table`;--> statement-breakpoint
|
||||
ALTER TABLE `__new_backup_schedules_table` RENAME TO `backup_schedules_table`;--> statement-breakpoint
|
||||
PRAGMA foreign_keys=ON;--> statement-breakpoint
|
||||
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
||||
CREATE TABLE `__new_repositories_table` (
|
||||
`id` text PRIMARY KEY,
|
||||
`short_id` text NOT NULL UNIQUE,
|
||||
`name` text NOT NULL,
|
||||
`type` text NOT NULL,
|
||||
`config` text NOT NULL,
|
||||
`compression_mode` text DEFAULT 'auto',
|
||||
`status` text DEFAULT 'unknown',
|
||||
`last_checked` integer,
|
||||
`last_error` text,
|
||||
`doctor_result` text,
|
||||
`upload_limit_enabled` integer DEFAULT false NOT NULL,
|
||||
`upload_limit_value` real DEFAULT 1 NOT NULL,
|
||||
`upload_limit_unit` text DEFAULT 'Mbps' NOT NULL,
|
||||
`download_limit_enabled` integer DEFAULT false NOT NULL,
|
||||
`download_limit_value` real DEFAULT 1 NOT NULL,
|
||||
`download_limit_unit` text DEFAULT 'Mbps' NOT NULL,
|
||||
`created_at` integer DEFAULT (unixepoch() * 1000) NOT NULL,
|
||||
`updated_at` integer DEFAULT (unixepoch() * 1000) NOT NULL,
|
||||
`organization_id` text NOT NULL,
|
||||
CONSTRAINT `repositories_table_organization_id_organization_id_fk` FOREIGN KEY (`organization_id`) REFERENCES `organization`(`id`) ON DELETE CASCADE
|
||||
);
|
||||
--> statement-breakpoint
|
||||
INSERT INTO `__new_repositories_table`(`id`, `short_id`, `name`, `type`, `config`, `compression_mode`, `status`, `last_checked`, `last_error`, `doctor_result`, `upload_limit_enabled`, `upload_limit_value`, `upload_limit_unit`, `download_limit_enabled`, `download_limit_value`, `download_limit_unit`, `created_at`, `updated_at`, `organization_id`) SELECT `id`, `short_id`, `name`, `type`, `config`, `compression_mode`, `status`, `last_checked`, `last_error`, `doctor_result`, `upload_limit_enabled`, `upload_limit_value`, `upload_limit_unit`, `download_limit_enabled`, `download_limit_value`, `download_limit_unit`, `created_at`, `updated_at`, `organization_id` FROM `repositories_table`;--> statement-breakpoint
|
||||
DROP TABLE `repositories_table`;--> statement-breakpoint
|
||||
ALTER TABLE `__new_repositories_table` RENAME TO `repositories_table`;--> statement-breakpoint
|
||||
PRAGMA foreign_keys=ON;--> statement-breakpoint
|
||||
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
||||
CREATE TABLE `__new_sessions_table` (
|
||||
`id` text PRIMARY KEY,
|
||||
`user_id` text NOT NULL,
|
||||
`token` text NOT NULL UNIQUE,
|
||||
`expires_at` integer NOT NULL,
|
||||
`created_at` integer DEFAULT (unixepoch() * 1000) NOT NULL,
|
||||
`updated_at` integer DEFAULT (unixepoch() * 1000) NOT NULL,
|
||||
`ip_address` text,
|
||||
`user_agent` text,
|
||||
`impersonated_by` text,
|
||||
`active_organization_id` text,
|
||||
CONSTRAINT `sessions_table_user_id_users_table_id_fk` FOREIGN KEY (`user_id`) REFERENCES `users_table`(`id`) ON DELETE CASCADE
|
||||
);
|
||||
--> statement-breakpoint
|
||||
INSERT INTO `__new_sessions_table`(`id`, `user_id`, `token`, `expires_at`, `created_at`, `updated_at`, `ip_address`, `user_agent`, `impersonated_by`, `active_organization_id`) SELECT `id`, `user_id`, `token`, `expires_at`, `created_at`, `updated_at`, `ip_address`, `user_agent`, `impersonated_by`, `active_organization_id` FROM `sessions_table`;--> statement-breakpoint
|
||||
DROP TABLE `sessions_table`;--> statement-breakpoint
|
||||
ALTER TABLE `__new_sessions_table` RENAME TO `sessions_table`;--> statement-breakpoint
|
||||
PRAGMA foreign_keys=ON;--> statement-breakpoint
|
||||
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
||||
CREATE TABLE `__new_users_table` (
|
||||
`id` text PRIMARY KEY,
|
||||
`username` text NOT NULL UNIQUE,
|
||||
`password_hash` text,
|
||||
`has_downloaded_restic_password` integer DEFAULT false NOT NULL,
|
||||
`created_at` integer DEFAULT (unixepoch() * 1000) NOT NULL,
|
||||
`updated_at` integer DEFAULT (unixepoch() * 1000) NOT NULL,
|
||||
`name` text NOT NULL,
|
||||
`email` text NOT NULL UNIQUE,
|
||||
`email_verified` integer DEFAULT false NOT NULL,
|
||||
`image` text,
|
||||
`display_username` text,
|
||||
`two_factor_enabled` integer DEFAULT false NOT NULL,
|
||||
`role` text DEFAULT 'user' NOT NULL,
|
||||
`banned` integer DEFAULT false NOT NULL,
|
||||
`ban_reason` text,
|
||||
`ban_expires` integer
|
||||
);
|
||||
--> statement-breakpoint
|
||||
INSERT INTO `__new_users_table`(`id`, `username`, `password_hash`, `has_downloaded_restic_password`, `created_at`, `updated_at`, `name`, `email`, `email_verified`, `image`, `display_username`, `two_factor_enabled`, `role`, `banned`, `ban_reason`, `ban_expires`) SELECT `id`, `username`, `password_hash`, `has_downloaded_restic_password`, `created_at`, `updated_at`, `name`, `email`, `email_verified`, `image`, `display_username`, `two_factor_enabled`, `role`, `banned`, `ban_reason`, `ban_expires` FROM `users_table`;--> statement-breakpoint
|
||||
DROP TABLE `users_table`;--> statement-breakpoint
|
||||
ALTER TABLE `__new_users_table` RENAME TO `users_table`;--> statement-breakpoint
|
||||
PRAGMA foreign_keys=ON;--> statement-breakpoint
|
||||
DROP INDEX IF EXISTS `backup_schedule_mirrors_table_schedule_id_repository_id_unique`;--> statement-breakpoint
|
||||
DROP INDEX IF EXISTS `backup_schedules_table_short_id_unique`;--> statement-breakpoint
|
||||
DROP INDEX IF EXISTS `organization_slug_unique`;--> statement-breakpoint
|
||||
DROP INDEX IF EXISTS `repositories_table_short_id_unique`;--> statement-breakpoint
|
||||
DROP INDEX IF EXISTS `sessions_table_token_unique`;--> statement-breakpoint
|
||||
DROP INDEX IF EXISTS `users_table_username_unique`;--> statement-breakpoint
|
||||
DROP INDEX IF EXISTS `users_table_email_unique`;--> statement-breakpoint
|
||||
DROP INDEX IF EXISTS `volumes_table_short_id_unique`;--> statement-breakpoint
|
||||
DROP INDEX IF EXISTS `volumes_table_name_organization_id_unique`;--> statement-breakpoint
|
||||
CREATE INDEX `sessionsTable_userId_idx` ON `sessions_table` (`user_id`);
|
||||
2154
app/drizzle/20260201174434_legal_sandman/snapshot.json
Normal file
2154
app/drizzle/20260201174434_legal_sandman/snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,55 +0,0 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "f4a793d2-279b-4688-bbe3-2b69673fa7fa",
|
||||
"prevId": "00000000-0000-0000-0000-000000000000",
|
||||
"tables": {
|
||||
"volumes_table": {
|
||||
"name": "volumes_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "integer",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"type": {
|
||||
"name": "type",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"volumes_table_name_unique": {
|
||||
"name": "volumes_table_name_unique",
|
||||
"columns": ["name"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"views": {},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"internal": {
|
||||
"indexes": {}
|
||||
}
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "004e25a0-ecda-4b1a-aeab-46c8f78d5275",
|
||||
"prevId": "f4a793d2-279b-4688-bbe3-2b69673fa7fa",
|
||||
"tables": {
|
||||
"volumes_table": {
|
||||
"name": "volumes_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "integer",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"path": {
|
||||
"name": "path",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"type": {
|
||||
"name": "type",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(current_timestamp)"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(current_timestamp)"
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"volumes_table_name_unique": {
|
||||
"name": "volumes_table_name_unique",
|
||||
"columns": ["name"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"views": {},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"internal": {
|
||||
"indexes": {}
|
||||
}
|
||||
}
|
||||
@@ -1,108 +0,0 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "00a82d1d-4745-4487-83e4-42bb7aaa3e95",
|
||||
"prevId": "004e25a0-ecda-4b1a-aeab-46c8f78d5275",
|
||||
"tables": {
|
||||
"volumes_table": {
|
||||
"name": "volumes_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "integer",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"path": {
|
||||
"name": "path",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"type": {
|
||||
"name": "type",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"status": {
|
||||
"name": "status",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'"
|
||||
},
|
||||
"last_error": {
|
||||
"name": "last_error",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"last_health_check": {
|
||||
"name": "last_health_check",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"volumes_table_name_unique": {
|
||||
"name": "volumes_table_name_unique",
|
||||
"columns": ["name"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"views": {},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"internal": {
|
||||
"indexes": {}
|
||||
}
|
||||
}
|
||||
@@ -1,116 +0,0 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "b7f1ccb8-7bb3-486f-a103-b95b331a121f",
|
||||
"prevId": "00a82d1d-4745-4487-83e4-42bb7aaa3e95",
|
||||
"tables": {
|
||||
"volumes_table": {
|
||||
"name": "volumes_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "integer",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"path": {
|
||||
"name": "path",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"type": {
|
||||
"name": "type",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"status": {
|
||||
"name": "status",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'"
|
||||
},
|
||||
"last_error": {
|
||||
"name": "last_error",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"last_health_check": {
|
||||
"name": "last_health_check",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"auto_remount": {
|
||||
"name": "auto_remount",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": 1
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"volumes_table_name_unique": {
|
||||
"name": "volumes_table_name_unique",
|
||||
"columns": ["name"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"views": {},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"internal": {
|
||||
"indexes": {}
|
||||
}
|
||||
}
|
||||
@@ -1,116 +0,0 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "0b087a68-fbc6-4647-a6dc-e6322a3d4ee3",
|
||||
"prevId": "b7f1ccb8-7bb3-486f-a103-b95b331a121f",
|
||||
"tables": {
|
||||
"volumes_table": {
|
||||
"name": "volumes_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "integer",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"path": {
|
||||
"name": "path",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"type": {
|
||||
"name": "type",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"status": {
|
||||
"name": "status",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'"
|
||||
},
|
||||
"last_error": {
|
||||
"name": "last_error",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"last_health_check": {
|
||||
"name": "last_health_check",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"auto_remount": {
|
||||
"name": "auto_remount",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"volumes_table_name_unique": {
|
||||
"name": "volumes_table_name_unique",
|
||||
"columns": ["name"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"views": {},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"internal": {
|
||||
"indexes": {}
|
||||
}
|
||||
}
|
||||
@@ -1,218 +0,0 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "75f0aac0-aa63-4577-bfb6-4638a008935f",
|
||||
"prevId": "0b087a68-fbc6-4647-a6dc-e6322a3d4ee3",
|
||||
"tables": {
|
||||
"sessions_table": {
|
||||
"name": "sessions_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"user_id": {
|
||||
"name": "user_id",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"expires_at": {
|
||||
"name": "expires_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {
|
||||
"sessions_table_user_id_users_table_id_fk": {
|
||||
"name": "sessions_table_user_id_users_table_id_fk",
|
||||
"tableFrom": "sessions_table",
|
||||
"tableTo": "users_table",
|
||||
"columnsFrom": ["user_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "cascade",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"users_table": {
|
||||
"name": "users_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "integer",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"username": {
|
||||
"name": "username",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"password_hash": {
|
||||
"name": "password_hash",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"users_table_username_unique": {
|
||||
"name": "users_table_username_unique",
|
||||
"columns": ["username"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"volumes_table": {
|
||||
"name": "volumes_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "integer",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"path": {
|
||||
"name": "path",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"type": {
|
||||
"name": "type",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"status": {
|
||||
"name": "status",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'"
|
||||
},
|
||||
"last_error": {
|
||||
"name": "last_error",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"last_health_check": {
|
||||
"name": "last_health_check",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"auto_remount": {
|
||||
"name": "auto_remount",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"volumes_table_name_unique": {
|
||||
"name": "volumes_table_name_unique",
|
||||
"columns": ["name"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"views": {},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"internal": {
|
||||
"indexes": {}
|
||||
}
|
||||
}
|
||||
@@ -1,301 +0,0 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "16f360b6-fb61-44f3-a7f7-2bae78ebf7ca",
|
||||
"prevId": "75f0aac0-aa63-4577-bfb6-4638a008935f",
|
||||
"tables": {
|
||||
"repositories_table": {
|
||||
"name": "repositories_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"backend": {
|
||||
"name": "backend",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"compression_mode": {
|
||||
"name": "compression_mode",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'auto'"
|
||||
},
|
||||
"status": {
|
||||
"name": "status",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'unknown'"
|
||||
},
|
||||
"last_checked": {
|
||||
"name": "last_checked",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"last_error": {
|
||||
"name": "last_error",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"repositories_table_name_unique": {
|
||||
"name": "repositories_table_name_unique",
|
||||
"columns": ["name"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"sessions_table": {
|
||||
"name": "sessions_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"user_id": {
|
||||
"name": "user_id",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"expires_at": {
|
||||
"name": "expires_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {
|
||||
"sessions_table_user_id_users_table_id_fk": {
|
||||
"name": "sessions_table_user_id_users_table_id_fk",
|
||||
"tableFrom": "sessions_table",
|
||||
"tableTo": "users_table",
|
||||
"columnsFrom": ["user_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "cascade",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"users_table": {
|
||||
"name": "users_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "integer",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"username": {
|
||||
"name": "username",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"password_hash": {
|
||||
"name": "password_hash",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"users_table_username_unique": {
|
||||
"name": "users_table_username_unique",
|
||||
"columns": ["username"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"volumes_table": {
|
||||
"name": "volumes_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "integer",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"type": {
|
||||
"name": "type",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"status": {
|
||||
"name": "status",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'"
|
||||
},
|
||||
"last_error": {
|
||||
"name": "last_error",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"last_health_check": {
|
||||
"name": "last_health_check",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"auto_remount": {
|
||||
"name": "auto_remount",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"volumes_table_name_unique": {
|
||||
"name": "volumes_table_name_unique",
|
||||
"columns": ["name"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"views": {},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"internal": {
|
||||
"indexes": {}
|
||||
}
|
||||
}
|
||||
@@ -1,303 +0,0 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "866b1d3b-454b-4cf7-9835-a0f60d048b6e",
|
||||
"prevId": "16f360b6-fb61-44f3-a7f7-2bae78ebf7ca",
|
||||
"tables": {
|
||||
"repositories_table": {
|
||||
"name": "repositories_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"type": {
|
||||
"name": "type",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"compression_mode": {
|
||||
"name": "compression_mode",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'auto'"
|
||||
},
|
||||
"status": {
|
||||
"name": "status",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'unknown'"
|
||||
},
|
||||
"last_checked": {
|
||||
"name": "last_checked",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"last_error": {
|
||||
"name": "last_error",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"repositories_table_name_unique": {
|
||||
"name": "repositories_table_name_unique",
|
||||
"columns": ["name"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"sessions_table": {
|
||||
"name": "sessions_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"user_id": {
|
||||
"name": "user_id",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"expires_at": {
|
||||
"name": "expires_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {
|
||||
"sessions_table_user_id_users_table_id_fk": {
|
||||
"name": "sessions_table_user_id_users_table_id_fk",
|
||||
"tableFrom": "sessions_table",
|
||||
"tableTo": "users_table",
|
||||
"columnsFrom": ["user_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "cascade",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"users_table": {
|
||||
"name": "users_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "integer",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"username": {
|
||||
"name": "username",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"password_hash": {
|
||||
"name": "password_hash",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"users_table_username_unique": {
|
||||
"name": "users_table_username_unique",
|
||||
"columns": ["username"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"volumes_table": {
|
||||
"name": "volumes_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "integer",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"type": {
|
||||
"name": "type",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"status": {
|
||||
"name": "status",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'"
|
||||
},
|
||||
"last_error": {
|
||||
"name": "last_error",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"last_health_check": {
|
||||
"name": "last_health_check",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"auto_remount": {
|
||||
"name": "auto_remount",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"volumes_table_name_unique": {
|
||||
"name": "volumes_table_name_unique",
|
||||
"columns": ["name"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"views": {},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {
|
||||
"\"repositories_table\".\"backend\"": "\"repositories_table\".\"type\""
|
||||
}
|
||||
},
|
||||
"internal": {
|
||||
"indexes": {}
|
||||
}
|
||||
}
|
||||
@@ -1,439 +0,0 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "6e35f329-5431-47fd-8862-8fb06b0afe4b",
|
||||
"prevId": "866b1d3b-454b-4cf7-9835-a0f60d048b6e",
|
||||
"tables": {
|
||||
"backup_schedules_table": {
|
||||
"name": "backup_schedules_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "integer",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"volume_id": {
|
||||
"name": "volume_id",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"repository_id": {
|
||||
"name": "repository_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"enabled": {
|
||||
"name": "enabled",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": true
|
||||
},
|
||||
"cron_expression": {
|
||||
"name": "cron_expression",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"retention_policy": {
|
||||
"name": "retention_policy",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"exclude_patterns": {
|
||||
"name": "exclude_patterns",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'"
|
||||
},
|
||||
"include_patterns": {
|
||||
"name": "include_patterns",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'[]'"
|
||||
},
|
||||
"last_backup_at": {
|
||||
"name": "last_backup_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"last_backup_status": {
|
||||
"name": "last_backup_status",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"last_backup_error": {
|
||||
"name": "last_backup_error",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"next_backup_at": {
|
||||
"name": "next_backup_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"backup_schedules_table_volume_id_unique": {
|
||||
"name": "backup_schedules_table_volume_id_unique",
|
||||
"columns": ["volume_id"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"backup_schedules_table_volume_id_volumes_table_id_fk": {
|
||||
"name": "backup_schedules_table_volume_id_volumes_table_id_fk",
|
||||
"tableFrom": "backup_schedules_table",
|
||||
"tableTo": "volumes_table",
|
||||
"columnsFrom": ["volume_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "cascade",
|
||||
"onUpdate": "no action"
|
||||
},
|
||||
"backup_schedules_table_repository_id_repositories_table_id_fk": {
|
||||
"name": "backup_schedules_table_repository_id_repositories_table_id_fk",
|
||||
"tableFrom": "backup_schedules_table",
|
||||
"tableTo": "repositories_table",
|
||||
"columnsFrom": ["repository_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "cascade",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"repositories_table": {
|
||||
"name": "repositories_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"type": {
|
||||
"name": "type",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"compression_mode": {
|
||||
"name": "compression_mode",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'auto'"
|
||||
},
|
||||
"status": {
|
||||
"name": "status",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": "'unknown'"
|
||||
},
|
||||
"last_checked": {
|
||||
"name": "last_checked",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"last_error": {
|
||||
"name": "last_error",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"repositories_table_name_unique": {
|
||||
"name": "repositories_table_name_unique",
|
||||
"columns": ["name"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"sessions_table": {
|
||||
"name": "sessions_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"user_id": {
|
||||
"name": "user_id",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"expires_at": {
|
||||
"name": "expires_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {
|
||||
"sessions_table_user_id_users_table_id_fk": {
|
||||
"name": "sessions_table_user_id_users_table_id_fk",
|
||||
"tableFrom": "sessions_table",
|
||||
"tableTo": "users_table",
|
||||
"columnsFrom": ["user_id"],
|
||||
"columnsTo": ["id"],
|
||||
"onDelete": "cascade",
|
||||
"onUpdate": "no action"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"users_table": {
|
||||
"name": "users_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "integer",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"username": {
|
||||
"name": "username",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"password_hash": {
|
||||
"name": "password_hash",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"users_table_username_unique": {
|
||||
"name": "users_table_username_unique",
|
||||
"columns": ["username"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"volumes_table": {
|
||||
"name": "volumes_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "integer",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"type": {
|
||||
"name": "type",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"status": {
|
||||
"name": "status",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "'unmounted'"
|
||||
},
|
||||
"last_error": {
|
||||
"name": "last_error",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"last_health_check": {
|
||||
"name": "last_health_check",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(unixepoch())"
|
||||
},
|
||||
"config": {
|
||||
"name": "config",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"auto_remount": {
|
||||
"name": "auto_remount",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"volumes_table_name_unique": {
|
||||
"name": "volumes_table_name_unique",
|
||||
"columns": ["name"],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"views": {},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"internal": {
|
||||
"indexes": {}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user