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:
Nico
2026-02-01 19:14:52 +01:00
committed by GitHub
parent ebdca8870b
commit 35773a6969
173 changed files with 54423 additions and 38033 deletions

View File

@@ -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: [

View File

@@ -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": []
}

View 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": []
}

View 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": []
}

View 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": []
}

View 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": []
}

View 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": []
}

View 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": []
}

View 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\""
]
}

View 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": []
}

View 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": []
}

View 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": []
}

View 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": []
}

View 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": []
}

View 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": []
}

View 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": []
}

View 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": []
}

View 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": []
}

View 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": []
}

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View 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`);

View File

File diff suppressed because it is too large Load Diff

View File

@@ -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": {}
}
}

View File

@@ -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": {}
}
}

View File

@@ -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": {}
}
}

View File

@@ -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": {}
}
}

View File

@@ -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": {}
}
}

View File

@@ -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": {}
}
}

View File

@@ -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": {}
}
}

View File

@@ -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": {}
}
}

View File

@@ -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