2026-03-16 01:30:02 +00:00
{
"id" : "d963322c-77e2-4ac9-bd3c-ca544c85ae35" ,
"prevId" : "d8c59ec7-b686-41a7-a472-da29f3ab6727" ,
"version" : "7" ,
"dialect" : "postgresql" ,
"tables" : {
"public.account" : {
"name" : "account" ,
"schema" : "" ,
"columns" : {
"id" : {
"name" : "id" ,
"type" : "text" ,
"primaryKey" : true ,
"notNull" : true
} ,
"account_id" : {
"name" : "account_id" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : true
} ,
"provider_id" : {
"name" : "provider_id" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : true
} ,
"user_id" : {
"name" : "user_id" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : true
} ,
"access_token" : {
"name" : "access_token" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : false
} ,
"refresh_token" : {
"name" : "refresh_token" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : false
} ,
"id_token" : {
"name" : "id_token" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : false
} ,
"access_token_expires_at" : {
"name" : "access_token_expires_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : false
} ,
"refresh_token_expires_at" : {
"name" : "refresh_token_expires_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : false
} ,
"scope" : {
"name" : "scope" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : false
} ,
"password" : {
"name" : "password" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : false
} ,
"created_at" : {
"name" : "created_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : true
} ,
"updated_at" : {
"name" : "updated_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : true
}
} ,
"indexes" : {
"account_userId_idx" : {
"name" : "account_userId_idx" ,
"columns" : [
{
"expression" : "user_id" ,
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
}
] ,
"isUnique" : false ,
"concurrently" : false ,
"method" : "btree" ,
"with" : { }
}
} ,
"foreignKeys" : {
"account_user_id_user_id_fk" : {
"name" : "account_user_id_user_id_fk" ,
"tableFrom" : "account" ,
"tableTo" : "user" ,
"columnsFrom" : [
"user_id"
] ,
"columnsTo" : [
"id"
] ,
"onDelete" : "cascade" ,
"onUpdate" : "no action"
}
} ,
"compositePrimaryKeys" : { } ,
"uniqueConstraints" : { } ,
"policies" : { } ,
"checkConstraints" : { } ,
"isRLSEnabled" : false
} ,
2026-06-16 20:16:03 +01:00
"public.conversation_entries" : {
"name" : "conversation_entries" ,
2026-03-16 01:30:02 +00:00
"schema" : "" ,
"columns" : {
"id" : {
"name" : "id" ,
2026-06-16 20:16:03 +01:00
"type" : "uuid" ,
2026-03-16 01:30:02 +00:00
"primaryKey" : true ,
2026-06-16 20:16:03 +01:00
"notNull" : true ,
"default" : "gen_random_uuid()"
2026-03-16 01:30:02 +00:00
} ,
2026-06-16 20:16:03 +01:00
"conversation_id" : {
"name" : "conversation_id" ,
"type" : "uuid" ,
2026-03-16 01:30:02 +00:00
"primaryKey" : false ,
"notNull" : true
} ,
2026-06-16 20:16:03 +01:00
"sequence" : {
"name" : "sequence" ,
"type" : "integer" ,
2026-03-16 01:30:02 +00:00
"primaryKey" : false ,
"notNull" : true
} ,
2026-06-16 20:16:03 +01:00
"kind" : {
"name" : "kind" ,
"type" : "text" ,
2026-03-16 01:30:02 +00:00
"primaryKey" : false ,
"notNull" : true
} ,
2026-06-16 20:16:03 +01:00
"visibility" : {
"name" : "visibility" ,
2026-03-16 01:30:02 +00:00
"type" : "text" ,
"primaryKey" : false ,
2026-06-16 20:16:03 +01:00
"notNull" : true ,
"default" : "'internal'"
2026-03-16 01:30:02 +00:00
} ,
2026-06-16 20:16:03 +01:00
"file_id" : {
"name" : "file_id" ,
"type" : "uuid" ,
2026-03-16 01:30:02 +00:00
"primaryKey" : false ,
"notNull" : false
} ,
2026-06-16 20:16:03 +01:00
"payload" : {
"name" : "payload" ,
"type" : "jsonb" ,
2026-03-16 01:30:02 +00:00
"primaryKey" : false ,
"notNull" : true
2026-06-16 20:16:03 +01:00
} ,
"metadata" : {
"name" : "metadata" ,
"type" : "jsonb" ,
"primaryKey" : false ,
"notNull" : true ,
"default" : "'{}'::jsonb"
} ,
"created_at" : {
"name" : "created_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : true ,
"default" : "now()"
2026-03-16 01:30:02 +00:00
}
} ,
"indexes" : {
2026-06-16 20:16:03 +01:00
"conversation_entries_conversation_id_sequence_idx" : {
"name" : "conversation_entries_conversation_id_sequence_idx" ,
2026-03-16 01:30:02 +00:00
"columns" : [
{
2026-06-16 20:16:03 +01:00
"expression" : "conversation_id" ,
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
} ,
{
"expression" : "sequence" ,
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
}
] ,
"isUnique" : false ,
"concurrently" : false ,
"method" : "btree" ,
"with" : { }
} ,
"conversation_entries_conversation_id_visibility_sequence_idx" : {
"name" : "conversation_entries_conversation_id_visibility_sequence_idx" ,
"columns" : [
{
"expression" : "conversation_id" ,
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
} ,
{
"expression" : "visibility" ,
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
} ,
{
"expression" : "sequence" ,
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
}
] ,
"isUnique" : false ,
"concurrently" : false ,
"method" : "btree" ,
"with" : { }
} ,
"conversation_entries_kind_idx" : {
"name" : "conversation_entries_kind_idx" ,
"columns" : [
{
"expression" : "kind" ,
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
}
] ,
"isUnique" : false ,
"concurrently" : false ,
"method" : "btree" ,
"with" : { }
} ,
"conversation_entries_file_id_idx" : {
"name" : "conversation_entries_file_id_idx" ,
"columns" : [
{
"expression" : "file_id" ,
2026-03-16 01:30:02 +00:00
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
}
] ,
"isUnique" : false ,
"concurrently" : false ,
"method" : "btree" ,
"with" : { }
}
} ,
"foreignKeys" : {
2026-06-16 20:16:03 +01:00
"conversation_entries_conversation_id_conversations_id_fk" : {
"name" : "conversation_entries_conversation_id_conversations_id_fk" ,
"tableFrom" : "conversation_entries" ,
"tableTo" : "conversations" ,
2026-03-16 01:30:02 +00:00
"columnsFrom" : [
2026-06-16 20:16:03 +01:00
"conversation_id"
2026-03-16 01:30:02 +00:00
] ,
"columnsTo" : [
"id"
] ,
"onDelete" : "cascade" ,
"onUpdate" : "no action"
2026-06-16 20:16:03 +01:00
} ,
"conversation_entries_file_id_files_id_fk" : {
"name" : "conversation_entries_file_id_files_id_fk" ,
"tableFrom" : "conversation_entries" ,
"tableTo" : "files" ,
"columnsFrom" : [
"file_id"
] ,
"columnsTo" : [
"id"
] ,
"onDelete" : "restrict" ,
"onUpdate" : "no action"
2026-03-16 01:30:02 +00:00
}
} ,
"compositePrimaryKeys" : { } ,
"uniqueConstraints" : {
2026-06-16 20:16:03 +01:00
"conversation_entries_conversation_id_sequence_unique" : {
"name" : "conversation_entries_conversation_id_sequence_unique" ,
2026-03-16 01:30:02 +00:00
"nullsNotDistinct" : false ,
"columns" : [
2026-06-16 20:16:03 +01:00
"conversation_id" ,
"sequence"
2026-03-16 01:30:02 +00:00
]
}
} ,
"policies" : { } ,
2026-06-16 20:16:03 +01:00
"checkConstraints" : {
"conversation_entries_attachment_file_id_check" : {
"name" : "conversation_entries_attachment_file_id_check" ,
"value" : "(\"conversation_entries\".\"kind\" = 'attachment' and \"conversation_entries\".\"file_id\" is not null) or (\"conversation_entries\".\"kind\" <> 'attachment' and \"conversation_entries\".\"file_id\" is null)"
}
} ,
2026-03-16 01:30:02 +00:00
"isRLSEnabled" : false
} ,
2026-06-16 20:16:03 +01:00
"public.conversations" : {
"name" : "conversations" ,
2026-03-16 01:30:02 +00:00
"schema" : "" ,
"columns" : {
"id" : {
"name" : "id" ,
2026-06-16 20:16:03 +01:00
"type" : "uuid" ,
2026-03-16 01:30:02 +00:00
"primaryKey" : true ,
"notNull" : true ,
2026-06-16 20:16:03 +01:00
"default" : "gen_random_uuid()"
2026-03-16 01:30:02 +00:00
} ,
2026-06-16 20:16:03 +01:00
"user_id" : {
"name" : "user_id" ,
2026-03-16 01:30:02 +00:00
"type" : "text" ,
"primaryKey" : false ,
2026-06-16 20:16:03 +01:00
"notNull" : true
2026-03-16 01:30:02 +00:00
} ,
"created_at" : {
"name" : "created_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
2026-06-16 20:16:03 +01:00
"notNull" : true ,
"default" : "now()"
2026-03-16 01:30:02 +00:00
} ,
"updated_at" : {
"name" : "updated_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
2026-06-16 20:16:03 +01:00
"notNull" : true ,
"default" : "now()"
2026-03-16 01:30:02 +00:00
}
} ,
2026-06-16 20:16:03 +01:00
"indexes" : {
"conversations_user_id_updated_at_idx" : {
"name" : "conversations_user_id_updated_at_idx" ,
2026-03-16 01:30:02 +00:00
"columns" : [
2026-06-16 20:16:03 +01:00
{
"expression" : "user_id" ,
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
} ,
{
"expression" : "updated_at" ,
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
}
] ,
"isUnique" : false ,
"concurrently" : false ,
"method" : "btree" ,
"with" : { }
}
} ,
"foreignKeys" : {
"conversations_user_id_user_id_fk" : {
"name" : "conversations_user_id_user_id_fk" ,
"tableFrom" : "conversations" ,
"tableTo" : "user" ,
"columnsFrom" : [
"user_id"
] ,
"columnsTo" : [
"id"
] ,
"onDelete" : "cascade" ,
"onUpdate" : "no action"
2026-03-16 01:30:02 +00:00
}
} ,
2026-06-16 20:16:03 +01:00
"compositePrimaryKeys" : { } ,
"uniqueConstraints" : { } ,
2026-03-16 01:30:02 +00:00
"policies" : { } ,
"checkConstraints" : { } ,
"isRLSEnabled" : false
} ,
2026-06-16 20:16:03 +01:00
"public.files" : {
"name" : "files" ,
2026-03-16 01:30:02 +00:00
"schema" : "" ,
"columns" : {
"id" : {
"name" : "id" ,
"type" : "uuid" ,
"primaryKey" : true ,
"notNull" : true ,
"default" : "gen_random_uuid()"
} ,
"user_id" : {
"name" : "user_id" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : true
} ,
2026-06-16 20:16:03 +01:00
"storage_key" : {
"name" : "storage_key" ,
2026-03-16 01:30:02 +00:00
"type" : "text" ,
"primaryKey" : false ,
"notNull" : true
} ,
2026-06-16 20:16:03 +01:00
"original_name" : {
"name" : "original_name" ,
"type" : "text" ,
2026-03-16 01:30:02 +00:00
"primaryKey" : false ,
2026-06-16 20:16:03 +01:00
"notNull" : false
2026-03-16 01:30:02 +00:00
} ,
2026-06-16 20:16:03 +01:00
"mime_type" : {
"name" : "mime_type" ,
"type" : "text" ,
2026-03-16 01:30:02 +00:00
"primaryKey" : false ,
2026-06-16 20:16:03 +01:00
"notNull" : true
2026-03-16 01:30:02 +00:00
} ,
2026-06-16 20:16:03 +01:00
"size_bytes" : {
"name" : "size_bytes" ,
"type" : "integer" ,
2026-03-16 01:30:02 +00:00
"primaryKey" : false ,
2026-06-16 20:16:03 +01:00
"notNull" : true
2026-03-16 01:30:02 +00:00
} ,
2026-06-16 20:16:03 +01:00
"metadata" : {
"name" : "metadata" ,
"type" : "jsonb" ,
2026-03-16 01:30:02 +00:00
"primaryKey" : false ,
"notNull" : true ,
2026-06-16 20:16:03 +01:00
"default" : "'{}'::jsonb"
2026-03-16 01:30:02 +00:00
} ,
2026-06-16 20:16:03 +01:00
"created_at" : {
"name" : "created_at" ,
2026-03-16 01:30:02 +00:00
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : true ,
"default" : "now()"
}
} ,
"indexes" : {
2026-06-16 20:16:03 +01:00
"files_user_id_created_at_idx" : {
"name" : "files_user_id_created_at_idx" ,
2026-03-16 01:30:02 +00:00
"columns" : [
{
"expression" : "user_id" ,
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
} ,
{
2026-06-16 20:16:03 +01:00
"expression" : "created_at" ,
2026-03-16 01:30:02 +00:00
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
}
] ,
"isUnique" : false ,
"concurrently" : false ,
"method" : "btree" ,
"with" : { }
}
} ,
"foreignKeys" : {
2026-06-16 20:16:03 +01:00
"files_user_id_user_id_fk" : {
"name" : "files_user_id_user_id_fk" ,
"tableFrom" : "files" ,
2026-03-16 01:30:02 +00:00
"tableTo" : "user" ,
"columnsFrom" : [
"user_id"
] ,
"columnsTo" : [
"id"
] ,
"onDelete" : "cascade" ,
"onUpdate" : "no action"
}
} ,
"compositePrimaryKeys" : { } ,
"uniqueConstraints" : {
2026-06-16 20:16:03 +01:00
"files_storage_key_unique" : {
"name" : "files_storage_key_unique" ,
2026-03-16 01:30:02 +00:00
"nullsNotDistinct" : false ,
"columns" : [
2026-06-16 20:16:03 +01:00
"storage_key"
2026-03-16 01:30:02 +00:00
]
}
} ,
"policies" : { } ,
"checkConstraints" : { } ,
"isRLSEnabled" : false
} ,
2026-06-16 20:16:03 +01:00
"public.reminder_occurrence_overrides" : {
"name" : "reminder_occurrence_overrides" ,
2026-03-16 01:30:02 +00:00
"schema" : "" ,
"columns" : {
"id" : {
"name" : "id" ,
2026-06-16 20:16:03 +01:00
"type" : "uuid" ,
2026-03-16 01:30:02 +00:00
"primaryKey" : true ,
2026-06-16 20:16:03 +01:00
"notNull" : true ,
"default" : "gen_random_uuid()"
2026-03-16 01:30:02 +00:00
} ,
2026-06-16 20:16:03 +01:00
"user_id" : {
"name" : "user_id" ,
2026-03-16 01:30:02 +00:00
"type" : "text" ,
"primaryKey" : false ,
"notNull" : true
} ,
2026-06-16 20:16:03 +01:00
"reminder_id" : {
"name" : "reminder_id" ,
"type" : "uuid" ,
2026-03-16 01:30:02 +00:00
"primaryKey" : false ,
"notNull" : true
} ,
2026-06-16 20:16:03 +01:00
"occurrence_id" : {
"name" : "occurrence_id" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : true
} ,
"original_due_at" : {
"name" : "original_due_at" ,
2026-03-16 01:30:02 +00:00
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : true
} ,
2026-06-16 20:16:03 +01:00
"patch" : {
"name" : "patch" ,
"type" : "jsonb" ,
"primaryKey" : false ,
"notNull" : false
} ,
"completed_at" : {
"name" : "completed_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : false
} ,
"deleted_at" : {
"name" : "deleted_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : false
} ,
2026-03-16 01:30:02 +00:00
"created_at" : {
"name" : "created_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
2026-06-16 20:16:03 +01:00
"notNull" : true ,
"default" : "now()"
2026-03-16 01:30:02 +00:00
} ,
"updated_at" : {
"name" : "updated_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
2026-06-16 20:16:03 +01:00
"notNull" : true ,
"default" : "now()"
2026-03-16 01:30:02 +00:00
}
} ,
"indexes" : {
2026-06-16 20:16:03 +01:00
"reminder_occurrence_overrides_user_id_reminder_id_idx" : {
"name" : "reminder_occurrence_overrides_user_id_reminder_id_idx" ,
2026-03-16 01:30:02 +00:00
"columns" : [
{
2026-06-16 20:16:03 +01:00
"expression" : "user_id" ,
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
} ,
{
"expression" : "reminder_id" ,
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
}
] ,
"isUnique" : false ,
"concurrently" : false ,
"method" : "btree" ,
"with" : { }
} ,
"reminder_occurrence_overrides_user_id_original_due_at_idx" : {
"name" : "reminder_occurrence_overrides_user_id_original_due_at_idx" ,
"columns" : [
{
"expression" : "user_id" ,
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
} ,
{
"expression" : "original_due_at" ,
2026-03-16 01:30:02 +00:00
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
}
] ,
"isUnique" : false ,
"concurrently" : false ,
"method" : "btree" ,
"with" : { }
}
} ,
2026-06-16 20:16:03 +01:00
"foreignKeys" : {
"reminder_occurrence_overrides_user_id_user_id_fk" : {
"name" : "reminder_occurrence_overrides_user_id_user_id_fk" ,
"tableFrom" : "reminder_occurrence_overrides" ,
"tableTo" : "user" ,
"columnsFrom" : [
"user_id"
] ,
"columnsTo" : [
"id"
] ,
"onDelete" : "cascade" ,
"onUpdate" : "no action"
} ,
"reminder_occurrence_overrides_reminder_id_reminders_id_fk" : {
"name" : "reminder_occurrence_overrides_reminder_id_reminders_id_fk" ,
"tableFrom" : "reminder_occurrence_overrides" ,
"tableTo" : "reminders" ,
"columnsFrom" : [
"reminder_id"
] ,
"columnsTo" : [
"id"
] ,
"onDelete" : "cascade" ,
"onUpdate" : "no action"
}
} ,
2026-03-16 01:30:02 +00:00
"compositePrimaryKeys" : { } ,
2026-06-16 20:16:03 +01:00
"uniqueConstraints" : {
"reminder_occurrence_overrides_reminder_id_occurrence_id_unique" : {
"name" : "reminder_occurrence_overrides_reminder_id_occurrence_id_unique" ,
"nullsNotDistinct" : false ,
"columns" : [
"reminder_id" ,
"occurrence_id"
]
}
} ,
2026-03-16 01:30:02 +00:00
"policies" : { } ,
"checkConstraints" : { } ,
"isRLSEnabled" : false
2026-06-14 00:05:19 +01:00
} ,
"public.reminders" : {
"name" : "reminders" ,
"schema" : "" ,
"columns" : {
"id" : {
"name" : "id" ,
"type" : "uuid" ,
"primaryKey" : true ,
"notNull" : true ,
"default" : "gen_random_uuid()"
} ,
"user_id" : {
"name" : "user_id" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : true
} ,
"title" : {
"name" : "title" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : true
} ,
"notes" : {
"name" : "notes" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : false
} ,
"due_at" : {
"name" : "due_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : true
} ,
"time_zone" : {
"name" : "time_zone" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : true ,
"default" : "'UTC'"
} ,
"recurrence" : {
"name" : "recurrence" ,
"type" : "jsonb" ,
"primaryKey" : false ,
"notNull" : false
} ,
"priority" : {
"name" : "priority" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : true ,
"default" : "'normal'"
} ,
"created_at" : {
"name" : "created_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : true ,
"default" : "now()"
} ,
"updated_at" : {
"name" : "updated_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : true ,
"default" : "now()"
}
} ,
"indexes" : {
"reminders_user_id_due_at_idx" : {
"name" : "reminders_user_id_due_at_idx" ,
"columns" : [
{
"expression" : "user_id" ,
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
} ,
{
"expression" : "due_at" ,
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
}
] ,
"isUnique" : false ,
"concurrently" : false ,
"method" : "btree" ,
"with" : { }
} ,
"reminders_user_id_updated_at_idx" : {
"name" : "reminders_user_id_updated_at_idx" ,
"columns" : [
{
"expression" : "user_id" ,
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
} ,
{
"expression" : "updated_at" ,
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
}
] ,
"isUnique" : false ,
"concurrently" : false ,
"method" : "btree" ,
"with" : { }
}
} ,
"foreignKeys" : {
"reminders_user_id_user_id_fk" : {
"name" : "reminders_user_id_user_id_fk" ,
"tableFrom" : "reminders" ,
"tableTo" : "user" ,
"columnsFrom" : [
"user_id"
] ,
"columnsTo" : [
"id"
] ,
"onDelete" : "cascade" ,
"onUpdate" : "no action"
}
} ,
"compositePrimaryKeys" : { } ,
"uniqueConstraints" : { } ,
"policies" : { } ,
"checkConstraints" : { } ,
"isRLSEnabled" : false
} ,
2026-06-16 20:16:03 +01:00
"public.session" : {
"name" : "session" ,
2026-06-14 00:05:19 +01:00
"schema" : "" ,
"columns" : {
"id" : {
"name" : "id" ,
2026-06-16 20:16:03 +01:00
"type" : "text" ,
2026-06-14 00:05:19 +01:00
"primaryKey" : true ,
2026-06-16 20:16:03 +01:00
"notNull" : true
} ,
"expires_at" : {
"name" : "expires_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : true
} ,
"token" : {
"name" : "token" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : true
} ,
"created_at" : {
"name" : "created_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : true
} ,
"updated_at" : {
"name" : "updated_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : true
} ,
"ip_address" : {
"name" : "ip_address" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : false
} ,
"user_agent" : {
"name" : "user_agent" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : false
2026-06-14 00:05:19 +01:00
} ,
"user_id" : {
"name" : "user_id" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : true
} ,
2026-06-16 20:16:03 +01:00
"impersonated_by" : {
"name" : "impersonated_by" ,
"type" : "text" ,
2026-06-14 00:05:19 +01:00
"primaryKey" : false ,
2026-06-16 20:16:03 +01:00
"notNull" : false
}
} ,
"indexes" : {
"session_userId_idx" : {
"name" : "session_userId_idx" ,
"columns" : [
{
"expression" : "user_id" ,
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
}
] ,
"isUnique" : false ,
"concurrently" : false ,
"method" : "btree" ,
"with" : { }
}
} ,
"foreignKeys" : {
"session_user_id_user_id_fk" : {
"name" : "session_user_id_user_id_fk" ,
"tableFrom" : "session" ,
"tableTo" : "user" ,
"columnsFrom" : [
"user_id"
] ,
"columnsTo" : [
"id"
] ,
"onDelete" : "cascade" ,
"onUpdate" : "no action"
}
} ,
"compositePrimaryKeys" : { } ,
"uniqueConstraints" : {
"session_token_unique" : {
"name" : "session_token_unique" ,
"nullsNotDistinct" : false ,
"columns" : [
"token"
]
}
} ,
"policies" : { } ,
"checkConstraints" : { } ,
"isRLSEnabled" : false
} ,
"public.user" : {
"name" : "user" ,
"schema" : "" ,
"columns" : {
"id" : {
"name" : "id" ,
"type" : "text" ,
"primaryKey" : true ,
2026-06-14 00:05:19 +01:00
"notNull" : true
} ,
2026-06-16 20:16:03 +01:00
"name" : {
"name" : "name" ,
2026-06-14 00:05:19 +01:00
"type" : "text" ,
"primaryKey" : false ,
"notNull" : true
} ,
2026-06-16 20:16:03 +01:00
"email" : {
"name" : "email" ,
"type" : "text" ,
2026-06-14 00:05:19 +01:00
"primaryKey" : false ,
"notNull" : true
} ,
2026-06-16 20:16:03 +01:00
"email_verified" : {
"name" : "email_verified" ,
"type" : "boolean" ,
"primaryKey" : false ,
"notNull" : true ,
"default" : false
} ,
"image" : {
"name" : "image" ,
"type" : "text" ,
2026-06-14 00:05:19 +01:00
"primaryKey" : false ,
"notNull" : false
} ,
2026-06-16 20:16:03 +01:00
"created_at" : {
"name" : "created_at" ,
2026-06-14 00:05:19 +01:00
"type" : "timestamp" ,
"primaryKey" : false ,
2026-06-16 20:16:03 +01:00
"notNull" : true
} ,
"updated_at" : {
"name" : "updated_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : true
} ,
"role" : {
"name" : "role" ,
"type" : "text" ,
"primaryKey" : false ,
2026-06-14 00:05:19 +01:00
"notNull" : false
} ,
2026-06-16 20:16:03 +01:00
"banned" : {
"name" : "banned" ,
"type" : "boolean" ,
"primaryKey" : false ,
"notNull" : false ,
"default" : false
} ,
"ban_reason" : {
"name" : "ban_reason" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : false
} ,
"ban_expires" : {
"name" : "ban_expires" ,
2026-06-14 00:05:19 +01:00
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : false
2026-06-16 20:16:03 +01:00
}
} ,
"indexes" : { } ,
"foreignKeys" : { } ,
"compositePrimaryKeys" : { } ,
"uniqueConstraints" : {
"user_email_unique" : {
"name" : "user_email_unique" ,
"nullsNotDistinct" : false ,
"columns" : [
"email"
]
}
} ,
"policies" : { } ,
"checkConstraints" : { } ,
"isRLSEnabled" : false
} ,
"public.user_sources" : {
"name" : "user_sources" ,
"schema" : "" ,
"columns" : {
"id" : {
"name" : "id" ,
"type" : "uuid" ,
"primaryKey" : true ,
"notNull" : true ,
"default" : "gen_random_uuid()"
} ,
"user_id" : {
"name" : "user_id" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : true
} ,
"source_id" : {
"name" : "source_id" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : true
} ,
"enabled" : {
"name" : "enabled" ,
"type" : "boolean" ,
"primaryKey" : false ,
"notNull" : true ,
"default" : true
} ,
"config" : {
"name" : "config" ,
"type" : "jsonb" ,
"primaryKey" : false ,
"notNull" : false ,
"default" : "'{}'::jsonb"
} ,
"credentials" : {
"name" : "credentials" ,
"type" : "bytea" ,
"primaryKey" : false ,
"notNull" : false
2026-06-14 00:05:19 +01:00
} ,
"created_at" : {
"name" : "created_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : true ,
"default" : "now()"
} ,
"updated_at" : {
"name" : "updated_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : true ,
"default" : "now()"
}
} ,
"indexes" : {
2026-06-16 20:16:03 +01:00
"user_sources_user_id_enabled_idx" : {
"name" : "user_sources_user_id_enabled_idx" ,
2026-06-14 00:05:19 +01:00
"columns" : [
{
"expression" : "user_id" ,
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
} ,
{
2026-06-16 20:16:03 +01:00
"expression" : "enabled" ,
2026-06-14 00:05:19 +01:00
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
}
] ,
"isUnique" : false ,
"concurrently" : false ,
"method" : "btree" ,
"with" : { }
}
} ,
"foreignKeys" : {
2026-06-16 20:16:03 +01:00
"user_sources_user_id_user_id_fk" : {
"name" : "user_sources_user_id_user_id_fk" ,
"tableFrom" : "user_sources" ,
2026-06-14 00:05:19 +01:00
"tableTo" : "user" ,
"columnsFrom" : [
"user_id"
] ,
"columnsTo" : [
"id"
] ,
"onDelete" : "cascade" ,
"onUpdate" : "no action"
}
} ,
"compositePrimaryKeys" : { } ,
"uniqueConstraints" : {
2026-06-16 20:16:03 +01:00
"user_sources_user_id_source_id_unique" : {
"name" : "user_sources_user_id_source_id_unique" ,
2026-06-14 00:05:19 +01:00
"nullsNotDistinct" : false ,
"columns" : [
2026-06-16 20:16:03 +01:00
"user_id" ,
"source_id"
2026-06-14 00:05:19 +01:00
]
}
} ,
"policies" : { } ,
"checkConstraints" : { } ,
"isRLSEnabled" : false
2026-06-16 20:16:03 +01:00
} ,
"public.verification" : {
"name" : "verification" ,
"schema" : "" ,
"columns" : {
"id" : {
"name" : "id" ,
"type" : "text" ,
"primaryKey" : true ,
"notNull" : true
} ,
"identifier" : {
"name" : "identifier" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : true
} ,
"value" : {
"name" : "value" ,
"type" : "text" ,
"primaryKey" : false ,
"notNull" : true
} ,
"expires_at" : {
"name" : "expires_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : true
} ,
"created_at" : {
"name" : "created_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : true
} ,
"updated_at" : {
"name" : "updated_at" ,
"type" : "timestamp" ,
"primaryKey" : false ,
"notNull" : true
}
} ,
"indexes" : {
"verification_identifier_idx" : {
"name" : "verification_identifier_idx" ,
"columns" : [
{
"expression" : "identifier" ,
"isExpression" : false ,
"asc" : true ,
"nulls" : "last"
}
] ,
"isUnique" : false ,
"concurrently" : false ,
"method" : "btree" ,
"with" : { }
}
} ,
"foreignKeys" : { } ,
"compositePrimaryKeys" : { } ,
"uniqueConstraints" : { } ,
"policies" : { } ,
"checkConstraints" : { } ,
"isRLSEnabled" : false
2026-03-16 01:30:02 +00:00
}
} ,
"enums" : { } ,
"schemas" : { } ,
"sequences" : { } ,
"roles" : { } ,
"policies" : { } ,
"views" : { } ,
"_meta" : {
"columns" : { } ,
"schemas" : { } ,
"tables" : { }
}
2026-06-14 00:05:19 +01:00
}