zerobyte/app/drizzle/20251002145138_simple_alice/snapshot.json
Nico 35773a6969
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
2026-02-01 19:14:52 +01:00

293 lines
No EOL
6.3 KiB
JSON

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