Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

Merge remote-tracking branch 'origin/main' into feat/recurring-tasks

olozano-9a16148cb2c1
diff --cc apps/api/drizzle/0063_glamorous_tiger_shark.sql
index 7ab728787,000000000..7ab728787
mode 100644,000000..100644
--- a/apps/api/drizzle/0063_glamorous_tiger_shark.sql
+++ b/apps/api/drizzle/0063_glamorous_tiger_shark.sql
diff --cc apps/api/drizzle/meta/0063_snapshot.json
index 000000000,000000000..fdd6e7f14
new file mode 100644
--- /dev/null
+++ b/apps/api/drizzle/meta/0063_snapshot.json
@@@ -1,0 -1,0 +1,5259 @@@
++{
++ "id": "82f1d124-9ae2-4a50-9a3e-948226b60271",
++ "prevId": "0466239b-b8ab-4220-a847-dde109ec6508",
++ "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,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "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
++ },
++ "public.activity": {
++ "name": "activity",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "task_id": {
++ "name": "task_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "type": {
++ "name": "type",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "user_id": {
++ "name": "user_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "content": {
++ "name": "content",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "event_data": {
++ "name": "event_data",
++ "type": "jsonb",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "external_user_name": {
++ "name": "external_user_name",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "external_user_avatar": {
++ "name": "external_user_avatar",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "external_source": {
++ "name": "external_source",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "external_url": {
++ "name": "external_url",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ }
++ },
++ "indexes": {
++ "activity_task_id_idx": {
++ "name": "activity_task_id_idx",
++ "columns": [
++ {
++ "expression": "task_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "activity_userId_idx": {
++ "name": "activity_userId_idx",
++ "columns": [
++ {
++ "expression": "user_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "activity_createdAt_idx": {
++ "name": "activity_createdAt_idx",
++ "columns": [
++ {
++ "expression": "created_at",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "activity_task_id_task_id_fk": {
++ "name": "activity_task_id_task_id_fk",
++ "tableFrom": "activity",
++ "tableTo": "task",
++ "columnsFrom": [
++ "task_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ },
++ "activity_user_id_user_id_fk": {
++ "name": "activity_user_id_user_id_fk",
++ "tableFrom": "activity",
++ "tableTo": "user",
++ "columnsFrom": [
++ "user_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "set null",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {
++ "activity_task_external_source_external_url_unique": {
++ "name": "activity_task_external_source_external_url_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "task_id",
++ "external_source",
++ "external_url"
++ ]
++ }
++ },
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.apikey": {
++ "name": "apikey",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "config_id": {
++ "name": "config_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "'default'"
++ },
++ "name": {
++ "name": "name",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "start": {
++ "name": "start",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "reference_id": {
++ "name": "reference_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "prefix": {
++ "name": "prefix",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "key": {
++ "name": "key",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "user_id": {
++ "name": "user_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "refill_interval": {
++ "name": "refill_interval",
++ "type": "integer",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "refill_amount": {
++ "name": "refill_amount",
++ "type": "integer",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "last_refill_at": {
++ "name": "last_refill_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "enabled": {
++ "name": "enabled",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": false,
++ "default": true
++ },
++ "rate_limit_enabled": {
++ "name": "rate_limit_enabled",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": false,
++ "default": true
++ },
++ "rate_limit_time_window": {
++ "name": "rate_limit_time_window",
++ "type": "integer",
++ "primaryKey": false,
++ "notNull": false,
++ "default": 86400000
++ },
++ "rate_limit_max": {
++ "name": "rate_limit_max",
++ "type": "integer",
++ "primaryKey": false,
++ "notNull": false,
++ "default": 10
++ },
++ "request_count": {
++ "name": "request_count",
++ "type": "integer",
++ "primaryKey": false,
++ "notNull": false,
++ "default": 0
++ },
++ "remaining": {
++ "name": "remaining",
++ "type": "integer",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "last_request": {
++ "name": "last_request",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "expires_at": {
++ "name": "expires_at",
++ "type": "timestamp",
++ "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
++ },
++ "permissions": {
++ "name": "permissions",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "metadata": {
++ "name": "metadata",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ }
++ },
++ "indexes": {
++ "apikey_configId_idx": {
++ "name": "apikey_configId_idx",
++ "columns": [
++ {
++ "expression": "config_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "apikey_key_idx": {
++ "name": "apikey_key_idx",
++ "columns": [
++ {
++ "expression": "key",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "apikey_referenceId_idx": {
++ "name": "apikey_referenceId_idx",
++ "columns": [
++ {
++ "expression": "reference_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "apikey_userId_idx": {
++ "name": "apikey_userId_idx",
++ "columns": [
++ {
++ "expression": "user_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "apikey_reference_id_user_id_fk": {
++ "name": "apikey_reference_id_user_id_fk",
++ "tableFrom": "apikey",
++ "tableTo": "user",
++ "columnsFrom": [
++ "reference_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "no action"
++ },
++ "apikey_user_id_user_id_fk": {
++ "name": "apikey_user_id_user_id_fk",
++ "tableFrom": "apikey",
++ "tableTo": "user",
++ "columnsFrom": [
++ "user_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "no action"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.asset": {
++ "name": "asset",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "workspace_id": {
++ "name": "workspace_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "project_id": {
++ "name": "project_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "task_id": {
++ "name": "task_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "activity_id": {
++ "name": "activity_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "object_key": {
++ "name": "object_key",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "filename": {
++ "name": "filename",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "mime_type": {
++ "name": "mime_type",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "size": {
++ "name": "size",
++ "type": "integer",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "kind": {
++ "name": "kind",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "'image'"
++ },
++ "surface": {
++ "name": "surface",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "'description'"
++ },
++ "created_by": {
++ "name": "created_by",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "asset_workspaceId_idx": {
++ "name": "asset_workspaceId_idx",
++ "columns": [
++ {
++ "expression": "workspace_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "asset_projectId_idx": {
++ "name": "asset_projectId_idx",
++ "columns": [
++ {
++ "expression": "project_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "asset_taskId_idx": {
++ "name": "asset_taskId_idx",
++ "columns": [
++ {
++ "expression": "task_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "asset_activityId_idx": {
++ "name": "asset_activityId_idx",
++ "columns": [
++ {
++ "expression": "activity_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "asset_createdBy_idx": {
++ "name": "asset_createdBy_idx",
++ "columns": [
++ {
++ "expression": "created_by",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "asset_draft_expiry_idx": {
++ "name": "asset_draft_expiry_idx",
++ "columns": [
++ {
++ "expression": "created_at",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ },
++ {
++ "expression": "id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "where": "\"asset\".\"task_id\" is null and \"asset\".\"surface\" in ('draft', 'draft-pending')",
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "asset_workspace_id_workspace_id_fk": {
++ "name": "asset_workspace_id_workspace_id_fk",
++ "tableFrom": "asset",
++ "tableTo": "workspace",
++ "columnsFrom": [
++ "workspace_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ },
++ "asset_project_id_project_id_fk": {
++ "name": "asset_project_id_project_id_fk",
++ "tableFrom": "asset",
++ "tableTo": "project",
++ "columnsFrom": [
++ "project_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ },
++ "asset_task_id_task_id_fk": {
++ "name": "asset_task_id_task_id_fk",
++ "tableFrom": "asset",
++ "tableTo": "task",
++ "columnsFrom": [
++ "task_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ },
++ "asset_activity_id_activity_id_fk": {
++ "name": "asset_activity_id_activity_id_fk",
++ "tableFrom": "asset",
++ "tableTo": "activity",
++ "columnsFrom": [
++ "activity_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ },
++ "asset_created_by_user_id_fk": {
++ "name": "asset_created_by_user_id_fk",
++ "tableFrom": "asset",
++ "tableTo": "user",
++ "columnsFrom": [
++ "created_by"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "set null",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {
++ "asset_object_key_unique": {
++ "name": "asset_object_key_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "object_key"
++ ]
++ }
++ },
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.billing_event": {
++ "name": "billing_event",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "event_type": {
++ "name": "event_type",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "processed_at": {
++ "name": "processed_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {},
++ "foreignKeys": {},
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.billing_reminder_sent": {
++ "name": "billing_reminder_sent",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "user_id": {
++ "name": "user_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "workspace_id": {
++ "name": "workspace_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "reminder_type": {
++ "name": "reminder_type",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "trial_ends_at": {
++ "name": "trial_ends_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "billing_reminder_sent_workspaceId_idx": {
++ "name": "billing_reminder_sent_workspaceId_idx",
++ "columns": [
++ {
++ "expression": "workspace_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "billing_reminder_sent_userId_idx": {
++ "name": "billing_reminder_sent_userId_idx",
++ "columns": [
++ {
++ "expression": "user_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "billing_reminder_sent_user_id_user_id_fk": {
++ "name": "billing_reminder_sent_user_id_user_id_fk",
++ "tableFrom": "billing_reminder_sent",
++ "tableTo": "user",
++ "columnsFrom": [
++ "user_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ },
++ "billing_reminder_sent_workspace_id_workspace_id_fk": {
++ "name": "billing_reminder_sent_workspace_id_workspace_id_fk",
++ "tableFrom": "billing_reminder_sent",
++ "tableTo": "workspace",
++ "columnsFrom": [
++ "workspace_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {
++ "billing_reminder_sent_user_type_unique": {
++ "name": "billing_reminder_sent_user_type_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "user_id",
++ "reminder_type"
++ ]
++ }
++ },
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.calendar_feed": {
++ "name": "calendar_feed",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "project_id": {
++ "name": "project_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "token": {
++ "name": "token",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "label_ids": {
++ "name": "label_ids",
++ "type": "jsonb",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "time_zone": {
++ "name": "time_zone",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "'UTC'"
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "calendar_feed_project_id_idx": {
++ "name": "calendar_feed_project_id_idx",
++ "columns": [
++ {
++ "expression": "project_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "calendar_feed_project_id_project_id_fk": {
++ "name": "calendar_feed_project_id_project_id_fk",
++ "tableFrom": "calendar_feed",
++ "tableTo": "project",
++ "columnsFrom": [
++ "project_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {
++ "calendar_feed_token_unique": {
++ "name": "calendar_feed_token_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "token"
++ ]
++ }
++ },
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.column": {
++ "name": "column",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "project_id": {
++ "name": "project_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "name": {
++ "name": "name",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "slug": {
++ "name": "slug",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "position": {
++ "name": "position",
++ "type": "integer",
++ "primaryKey": false,
++ "notNull": true,
++ "default": 0
++ },
++ "icon": {
++ "name": "icon",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "color": {
++ "name": "color",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "is_final": {
++ "name": "is_final",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": true,
++ "default": false
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "column_projectId_idx": {
++ "name": "column_projectId_idx",
++ "columns": [
++ {
++ "expression": "project_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "column_project_id_project_id_fk": {
++ "name": "column_project_id_project_id_fk",
++ "tableFrom": "column",
++ "tableTo": "project",
++ "columnsFrom": [
++ "project_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.comment": {
++ "name": "comment",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "task_id": {
++ "name": "task_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "user_id": {
++ "name": "user_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "content": {
++ "name": "content",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "comment_task_idx": {
++ "name": "comment_task_idx",
++ "columns": [
++ {
++ "expression": "task_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "comment_user_idx": {
++ "name": "comment_user_idx",
++ "columns": [
++ {
++ "expression": "user_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "comment_task_id_task_id_fk": {
++ "name": "comment_task_id_task_id_fk",
++ "tableFrom": "comment",
++ "tableTo": "task",
++ "columnsFrom": [
++ "task_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ },
++ "comment_user_id_user_id_fk": {
++ "name": "comment_user_id_user_id_fk",
++ "tableFrom": "comment",
++ "tableTo": "user",
++ "columnsFrom": [
++ "user_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.custom_field_definition": {
++ "name": "custom_field_definition",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "project_id": {
++ "name": "project_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "name": {
++ "name": "name",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "type": {
++ "name": "type",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "required": {
++ "name": "required",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": true,
++ "default": false
++ },
++ "default_value": {
++ "name": "default_value",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "options": {
++ "name": "options",
++ "type": "jsonb",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "position": {
++ "name": "position",
++ "type": "integer",
++ "primaryKey": false,
++ "notNull": true,
++ "default": 0
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "custom_field_def_projectId_idx": {
++ "name": "custom_field_def_projectId_idx",
++ "columns": [
++ {
++ "expression": "project_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "custom_field_definition_project_id_project_id_fk": {
++ "name": "custom_field_definition_project_id_project_id_fk",
++ "tableFrom": "custom_field_definition",
++ "tableTo": "project",
++ "columnsFrom": [
++ "project_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.custom_field_value": {
++ "name": "custom_field_value",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "task_id": {
++ "name": "task_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "field_id": {
++ "name": "field_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "value": {
++ "name": "value",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "custom_field_value_taskId_idx": {
++ "name": "custom_field_value_taskId_idx",
++ "columns": [
++ {
++ "expression": "task_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "custom_field_value_fieldId_idx": {
++ "name": "custom_field_value_fieldId_idx",
++ "columns": [
++ {
++ "expression": "field_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "custom_field_value_task_id_task_id_fk": {
++ "name": "custom_field_value_task_id_task_id_fk",
++ "tableFrom": "custom_field_value",
++ "tableTo": "task",
++ "columnsFrom": [
++ "task_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ },
++ "custom_field_value_field_id_custom_field_definition_id_fk": {
++ "name": "custom_field_value_field_id_custom_field_definition_id_fk",
++ "tableFrom": "custom_field_value",
++ "tableTo": "custom_field_definition",
++ "columnsFrom": [
++ "field_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {
++ "custom_field_value_task_field_unique": {
++ "name": "custom_field_value_task_field_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "task_id",
++ "field_id"
++ ]
++ }
++ },
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.data_migration": {
++ "name": "data_migration",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "completed_at": {
++ "name": "completed_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {},
++ "foreignKeys": {},
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.device_code": {
++ "name": "device_code",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "device_code": {
++ "name": "device_code",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "user_code": {
++ "name": "user_code",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "user_id": {
++ "name": "user_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "expires_at": {
++ "name": "expires_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "status": {
++ "name": "status",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "last_polled_at": {
++ "name": "last_polled_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "polling_interval": {
++ "name": "polling_interval",
++ "type": "integer",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "client_id": {
++ "name": "client_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "scope": {
++ "name": "scope",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ }
++ },
++ "indexes": {
++ "device_code_device_code_uidx": {
++ "name": "device_code_device_code_uidx",
++ "columns": [
++ {
++ "expression": "device_code",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": true,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "device_code_user_code_uidx": {
++ "name": "device_code_user_code_uidx",
++ "columns": [
++ {
++ "expression": "user_code",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": true,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "device_code_user_id_idx": {
++ "name": "device_code_user_id_idx",
++ "columns": [
++ {
++ "expression": "user_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "device_code_user_id_user_id_fk": {
++ "name": "device_code_user_id_user_id_fk",
++ "tableFrom": "device_code",
++ "tableTo": "user",
++ "columnsFrom": [
++ "user_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.external_link": {
++ "name": "external_link",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "task_id": {
++ "name": "task_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "integration_id": {
++ "name": "integration_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "resource_type": {
++ "name": "resource_type",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "external_id": {
++ "name": "external_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "url": {
++ "name": "url",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "title": {
++ "name": "title",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "metadata": {
++ "name": "metadata",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "external_link_taskId_idx": {
++ "name": "external_link_taskId_idx",
++ "columns": [
++ {
++ "expression": "task_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "external_link_integrationId_idx": {
++ "name": "external_link_integrationId_idx",
++ "columns": [
++ {
++ "expression": "integration_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "external_link_externalId_idx": {
++ "name": "external_link_externalId_idx",
++ "columns": [
++ {
++ "expression": "external_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "external_link_resourceType_idx": {
++ "name": "external_link_resourceType_idx",
++ "columns": [
++ {
++ "expression": "resource_type",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "external_link_deferred_issue_idx": {
++ "name": "external_link_deferred_issue_idx",
++ "columns": [
++ {
++ "expression": "id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "where": "\"external_link\".\"resource_type\" = 'issue' AND \"external_link\".\"metadata\" LIKE '%\"deferredIssueEdit\":%'",
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "external_link_task_id_task_id_fk": {
++ "name": "external_link_task_id_task_id_fk",
++ "tableFrom": "external_link",
++ "tableTo": "task",
++ "columnsFrom": [
++ "task_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ },
++ "external_link_integration_id_integration_id_fk": {
++ "name": "external_link_integration_id_integration_id_fk",
++ "tableFrom": "external_link",
++ "tableTo": "integration",
++ "columnsFrom": [
++ "integration_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.github_import": {
++ "name": "github_import",
++ "schema": "",
++ "columns": {
++ "integration_id": {
++ "name": "integration_id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "run_id": {
++ "name": "run_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "state": {
++ "name": "state",
++ "type": "jsonb",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {},
++ "foreignKeys": {
++ "github_import_integration_id_integration_id_fk": {
++ "name": "github_import_integration_id_integration_id_fk",
++ "tableFrom": "github_import",
++ "tableTo": "integration",
++ "columnsFrom": [
++ "integration_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.github_integration": {
++ "name": "github_integration",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "project_id": {
++ "name": "project_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "repository_owner": {
++ "name": "repository_owner",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "repository_name": {
++ "name": "repository_name",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "installation_id": {
++ "name": "installation_id",
++ "type": "integer",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "is_active": {
++ "name": "is_active",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": false,
++ "default": true
++ },
++ "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": {},
++ "foreignKeys": {
++ "github_integration_project_id_project_id_fk": {
++ "name": "github_integration_project_id_project_id_fk",
++ "tableFrom": "github_integration",
++ "tableTo": "project",
++ "columnsFrom": [
++ "project_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {
++ "github_integration_project_id_unique": {
++ "name": "github_integration_project_id_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "project_id"
++ ]
++ }
++ },
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.integration": {
++ "name": "integration",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "project_id": {
++ "name": "project_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "type": {
++ "name": "type",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "config": {
++ "name": "config",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "is_active": {
++ "name": "is_active",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": false,
++ "default": true
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "integration_projectId_idx": {
++ "name": "integration_projectId_idx",
++ "columns": [
++ {
++ "expression": "project_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "integration_type_idx": {
++ "name": "integration_type_idx",
++ "columns": [
++ {
++ "expression": "type",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "integration_project_id_project_id_fk": {
++ "name": "integration_project_id_project_id_fk",
++ "tableFrom": "integration",
++ "tableTo": "project",
++ "columnsFrom": [
++ "project_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {
++ "integration_project_type_unique": {
++ "name": "integration_project_type_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "project_id",
++ "type"
++ ]
++ }
++ },
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.invitation": {
++ "name": "invitation",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "workspace_id": {
++ "name": "workspace_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "email": {
++ "name": "email",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "role": {
++ "name": "role",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "team_id": {
++ "name": "team_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "status": {
++ "name": "status",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "'pending'"
++ },
++ "expires_at": {
++ "name": "expires_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "inviter_id": {
++ "name": "inviter_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "project_access": {
++ "name": "project_access",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "'all'"
++ },
++ "project_ids": {
++ "name": "project_ids",
++ "type": "text[]",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "'{}'::text[]"
++ }
++ },
++ "indexes": {
++ "invitation_workspaceId_idx": {
++ "name": "invitation_workspaceId_idx",
++ "columns": [
++ {
++ "expression": "workspace_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "invitation_email_idx": {
++ "name": "invitation_email_idx",
++ "columns": [
++ {
++ "expression": "email",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "invitation_inviterId_idx": {
++ "name": "invitation_inviterId_idx",
++ "columns": [
++ {
++ "expression": "inviter_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "invitation_workspace_id_workspace_id_fk": {
++ "name": "invitation_workspace_id_workspace_id_fk",
++ "tableFrom": "invitation",
++ "tableTo": "workspace",
++ "columnsFrom": [
++ "workspace_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "no action"
++ },
++ "invitation_inviter_id_user_id_fk": {
++ "name": "invitation_inviter_id_user_id_fk",
++ "tableFrom": "invitation",
++ "tableTo": "user",
++ "columnsFrom": [
++ "inviter_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "no action"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.job_lease": {
++ "name": "job_lease",
++ "schema": "",
++ "columns": {
++ "name": {
++ "name": "name",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "owner": {
++ "name": "owner",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "expires_at": {
++ "name": "expires_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true
++ }
++ },
++ "indexes": {},
++ "foreignKeys": {},
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.label": {
++ "name": "label",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "name": {
++ "name": "name",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "color": {
++ "name": "color",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "deletion_started_at": {
++ "name": "deletion_started_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "task_id": {
++ "name": "task_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "workspace_id": {
++ "name": "workspace_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ }
++ },
++ "indexes": {
++ "label_task_id_idx": {
++ "name": "label_task_id_idx",
++ "columns": [
++ {
++ "expression": "task_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "label_workspace_id_idx": {
++ "name": "label_workspace_id_idx",
++ "columns": [
++ {
++ "expression": "workspace_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "label_workspace_cascade_idx": {
++ "name": "label_workspace_cascade_idx",
++ "columns": [
++ {
++ "expression": "workspace_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ },
++ {
++ "expression": "name",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ },
++ {
++ "expression": "created_at",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ },
++ {
++ "expression": "id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "where": "\"label\".\"task_id\" is not null",
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "label_workspace_name_unique": {
++ "name": "label_workspace_name_unique",
++ "columns": [
++ {
++ "expression": "workspace_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ },
++ {
++ "expression": "name",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": true,
++ "where": "\"label\".\"task_id\" is null",
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "label_task_id_task_id_fk": {
++ "name": "label_task_id_task_id_fk",
++ "tableFrom": "label",
++ "tableTo": "task",
++ "columnsFrom": [
++ "task_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ },
++ "label_workspace_id_workspace_id_fk": {
++ "name": "label_workspace_id_workspace_id_fk",
++ "tableFrom": "label",
++ "tableTo": "workspace",
++ "columnsFrom": [
++ "workspace_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {
++ "label_task_name_unique": {
++ "name": "label_task_name_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "task_id",
++ "name"
++ ]
++ }
++ },
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.mcp_oauth_state": {
++ "name": "mcp_oauth_state",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "kind": {
++ "name": "kind",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "key": {
++ "name": "key",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "payload": {
++ "name": "payload",
++ "type": "jsonb",
++ "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,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "mcp_oauth_state_kind_key_uidx": {
++ "name": "mcp_oauth_state_kind_key_uidx",
++ "columns": [
++ {
++ "expression": "kind",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ },
++ {
++ "expression": "key",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": true,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "mcp_oauth_state_expiresAt_idx": {
++ "name": "mcp_oauth_state_expiresAt_idx",
++ "columns": [
++ {
++ "expression": "expires_at",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {},
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.notification": {
++ "name": "notification",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "user_id": {
++ "name": "user_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "title": {
++ "name": "title",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "content": {
++ "name": "content",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "type": {
++ "name": "type",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "'info'"
++ },
++ "event_data": {
++ "name": "event_data",
++ "type": "jsonb",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "is_read": {
++ "name": "is_read",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": false,
++ "default": false
++ },
++ "resource_id": {
++ "name": "resource_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "resource_type": {
++ "name": "resource_type",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp with time zone",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "now()"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp with time zone",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "now()"
++ }
++ },
++ "indexes": {
++ "notification_userId_idx": {
++ "name": "notification_userId_idx",
++ "columns": [
++ {
++ "expression": "user_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "notification_user_id_user_id_fk": {
++ "name": "notification_user_id_user_id_fk",
++ "tableFrom": "notification",
++ "tableTo": "user",
++ "columnsFrom": [
++ "user_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.workspace_role": {
++ "name": "workspace_role",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "workspace_id": {
++ "name": "workspace_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "role": {
++ "name": "role",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "permission": {
++ "name": "permission",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "workspace_role_workspaceId_idx": {
++ "name": "workspace_role_workspaceId_idx",
++ "columns": [
++ {
++ "expression": "workspace_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "workspace_role_role_idx": {
++ "name": "workspace_role_role_idx",
++ "columns": [
++ {
++ "expression": "role",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "workspace_role_workspace_id_workspace_id_fk": {
++ "name": "workspace_role_workspace_id_workspace_id_fk",
++ "tableFrom": "workspace_role",
++ "tableTo": "workspace",
++ "columnsFrom": [
++ "workspace_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.project": {
++ "name": "project",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "workspace_id": {
++ "name": "workspace_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "slug": {
++ "name": "slug",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "icon": {
++ "name": "icon",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false,
++ "default": "'Layout'"
++ },
++ "name": {
++ "name": "name",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "description": {
++ "name": "description",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "is_public": {
++ "name": "is_public",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": false,
++ "default": false
++ },
++ "archived_at": {
++ "name": "archived_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "last_task_number": {
++ "name": "last_task_number",
++ "type": "integer",
++ "primaryKey": false,
++ "notNull": true,
++ "default": 0
++ },
++ "position": {
++ "name": "position",
++ "type": "integer",
++ "primaryKey": false,
++ "notNull": true,
++ "default": 0
++ },
++ "background_object_key": {
++ "name": "background_object_key",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "background_mime_type": {
++ "name": "background_mime_type",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "background_version": {
++ "name": "background_version",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ }
++ },
++ "indexes": {
++ "project_background_object_key_idx": {
++ "name": "project_background_object_key_idx",
++ "columns": [
++ {
++ "expression": "background_object_key",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "where": "\"project\".\"background_object_key\" is not null",
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "project_workspaceId_position_idx": {
++ "name": "project_workspaceId_position_idx",
++ "columns": [
++ {
++ "expression": "workspace_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ },
++ {
++ "expression": "position",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "project_workspace_id_workspace_id_fk": {
++ "name": "project_workspace_id_workspace_id_fk",
++ "tableFrom": "project",
++ "tableTo": "workspace",
++ "columnsFrom": [
++ "workspace_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {
++ "project_workspace_id_id_unique": {
++ "name": "project_workspace_id_id_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "workspace_id",
++ "id"
++ ]
++ }
++ },
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.session": {
++ "name": "session",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "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,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "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
++ },
++ "user_id": {
++ "name": "user_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "active_organization_id": {
++ "name": "active_organization_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "active_team_id": {
++ "name": "active_team_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "impersonated_by": {
++ "name": "impersonated_by",
++ "type": "text",
++ "primaryKey": false,
++ "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.storage_cleanup": {
++ "name": "storage_cleanup",
++ "schema": "",
++ "columns": {
++ "object_key": {
++ "name": "object_key",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "last_attempt_at": {
++ "name": "last_attempt_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {},
++ "foreignKeys": {},
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.task_relation": {
++ "name": "task_relation",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "source_task_id": {
++ "name": "source_task_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "target_task_id": {
++ "name": "target_task_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "relation_type": {
++ "name": "relation_type",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "task_relation_source_idx": {
++ "name": "task_relation_source_idx",
++ "columns": [
++ {
++ "expression": "source_task_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "task_relation_target_idx": {
++ "name": "task_relation_target_idx",
++ "columns": [
++ {
++ "expression": "target_task_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "task_relation_source_task_id_task_id_fk": {
++ "name": "task_relation_source_task_id_task_id_fk",
++ "tableFrom": "task_relation",
++ "tableTo": "task",
++ "columnsFrom": [
++ "source_task_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ },
++ "task_relation_target_task_id_task_id_fk": {
++ "name": "task_relation_target_task_id_task_id_fk",
++ "tableFrom": "task_relation",
++ "tableTo": "task",
++ "columnsFrom": [
++ "target_task_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.task_reminder_sent": {
++ "name": "task_reminder_sent",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "task_id": {
++ "name": "task_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "reminder_type": {
++ "name": "reminder_type",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "task_reminder_sent_taskId_idx": {
++ "name": "task_reminder_sent_taskId_idx",
++ "columns": [
++ {
++ "expression": "task_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "task_reminder_sent_task_id_task_id_fk": {
++ "name": "task_reminder_sent_task_id_task_id_fk",
++ "tableFrom": "task_reminder_sent",
++ "tableTo": "task",
++ "columnsFrom": [
++ "task_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {
++ "task_reminder_sent_task_type_unique": {
++ "name": "task_reminder_sent_task_type_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "task_id",
++ "reminder_type"
++ ]
++ }
++ },
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.task": {
++ "name": "task",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "project_id": {
++ "name": "project_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "position": {
++ "name": "position",
++ "type": "integer",
++ "primaryKey": false,
++ "notNull": false,
++ "default": 0
++ },
++ "number": {
++ "name": "number",
++ "type": "integer",
++ "primaryKey": false,
++ "notNull": false,
++ "default": 1
++ },
++ "assignee_id": {
++ "name": "assignee_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "title": {
++ "name": "title",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "description": {
++ "name": "description",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "status": {
++ "name": "status",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "'to-do'"
++ },
++ "column_id": {
++ "name": "column_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "priority": {
++ "name": "priority",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "'low'"
++ },
++ "start_date": {
++ "name": "start_date",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "due_date": {
++ "name": "due_date",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "recurrence": {
++ "name": "recurrence",
++ "type": "jsonb",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "task_projectId_idx": {
++ "name": "task_projectId_idx",
++ "columns": [
++ {
++ "expression": "project_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "task_project_scheduled_id_idx": {
++ "name": "task_project_scheduled_id_idx",
++ "columns": [
++ {
++ "expression": "project_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ },
++ {
++ "expression": "id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "where": "\"task\".\"start_date\" is not null or \"task\".\"due_date\" is not null",
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "task_dueDate_idx": {
++ "name": "task_dueDate_idx",
++ "columns": [
++ {
++ "expression": "due_date",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "task_assigneeId_idx": {
++ "name": "task_assigneeId_idx",
++ "columns": [
++ {
++ "expression": "assignee_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "task_columnId_idx": {
++ "name": "task_columnId_idx",
++ "columns": [
++ {
++ "expression": "column_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "task_project_id_project_id_fk": {
++ "name": "task_project_id_project_id_fk",
++ "tableFrom": "task",
++ "tableTo": "project",
++ "columnsFrom": [
++ "project_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ },
++ "task_assignee_id_user_id_fk": {
++ "name": "task_assignee_id_user_id_fk",
++ "tableFrom": "task",
++ "tableTo": "user",
++ "columnsFrom": [
++ "assignee_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "set null",
++ "onUpdate": "cascade"
++ },
++ "task_column_id_column_id_fk": {
++ "name": "task_column_id_column_id_fk",
++ "tableFrom": "task",
++ "tableTo": "column",
++ "columnsFrom": [
++ "column_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "set null",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {
++ "task_project_number_unique": {
++ "name": "task_project_number_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "project_id",
++ "number"
++ ]
++ }
++ },
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.team": {
++ "name": "team",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "name": {
++ "name": "name",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "workspace_id": {
++ "name": "workspace_id",
++ "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": false
++ }
++ },
++ "indexes": {
++ "team_workspaceId_idx": {
++ "name": "team_workspaceId_idx",
++ "columns": [
++ {
++ "expression": "workspace_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "team_workspace_id_workspace_id_fk": {
++ "name": "team_workspace_id_workspace_id_fk",
++ "tableFrom": "team",
++ "tableTo": "workspace",
++ "columnsFrom": [
++ "workspace_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "no action"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.team_member": {
++ "name": "team_member",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "team_id": {
++ "name": "team_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "user_id": {
++ "name": "user_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": false
++ }
++ },
++ "indexes": {
++ "teamMember_teamId_idx": {
++ "name": "teamMember_teamId_idx",
++ "columns": [
++ {
++ "expression": "team_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "teamMember_userId_idx": {
++ "name": "teamMember_userId_idx",
++ "columns": [
++ {
++ "expression": "user_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "team_member_team_id_team_id_fk": {
++ "name": "team_member_team_id_team_id_fk",
++ "tableFrom": "team_member",
++ "tableTo": "team",
++ "columnsFrom": [
++ "team_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "no action"
++ },
++ "team_member_user_id_user_id_fk": {
++ "name": "team_member_user_id_user_id_fk",
++ "tableFrom": "team_member",
++ "tableTo": "user",
++ "columnsFrom": [
++ "user_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "no action"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.time_entry": {
++ "name": "time_entry",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "task_id": {
++ "name": "task_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "user_id": {
++ "name": "user_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "description": {
++ "name": "description",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "start_time": {
++ "name": "start_time",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "end_time": {
++ "name": "end_time",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "duration": {
++ "name": "duration",
++ "type": "integer",
++ "primaryKey": false,
++ "notNull": false,
++ "default": 0
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "time_entry_taskId_idx": {
++ "name": "time_entry_taskId_idx",
++ "columns": [
++ {
++ "expression": "task_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "time_entry_userId_idx": {
++ "name": "time_entry_userId_idx",
++ "columns": [
++ {
++ "expression": "user_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "time_entry_task_id_task_id_fk": {
++ "name": "time_entry_task_id_task_id_fk",
++ "tableFrom": "time_entry",
++ "tableTo": "task",
++ "columnsFrom": [
++ "task_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ },
++ "time_entry_user_id_user_id_fk": {
++ "name": "time_entry_user_id_user_id_fk",
++ "tableFrom": "time_entry",
++ "tableTo": "user",
++ "columnsFrom": [
++ "user_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "set null",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.trial_grant": {
++ "name": "trial_grant",
++ "schema": "",
++ "columns": {
++ "email_hash": {
++ "name": "email_hash",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "trial_ends_at": {
++ "name": "trial_ends_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {},
++ "foreignKeys": {},
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.user": {
++ "name": "user",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "name": {
++ "name": "name",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "email": {
++ "name": "email",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "email_verified": {
++ "name": "email_verified",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "image": {
++ "name": "image",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "locale": {
++ "name": "locale",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "is_anonymous": {
++ "name": "is_anonymous",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": false,
++ "default": false
++ },
++ "role": {
++ "name": "role",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "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",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": false
++ }
++ },
++ "indexes": {},
++ "foreignKeys": {},
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {
++ "user_email_unique": {
++ "name": "user_email_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "email"
++ ]
++ }
++ },
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.user_avatar": {
++ "name": "user_avatar",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "user_id": {
++ "name": "user_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "mime_type": {
++ "name": "mime_type",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "size": {
++ "name": "size",
++ "type": "integer",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "data": {
++ "name": "data",
++ "type": "bytea",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "user_avatar_userId_idx": {
++ "name": "user_avatar_userId_idx",
++ "columns": [
++ {
++ "expression": "user_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "user_avatar_user_id_user_id_fk": {
++ "name": "user_avatar_user_id_user_id_fk",
++ "tableFrom": "user_avatar",
++ "tableTo": "user",
++ "columnsFrom": [
++ "user_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {
++ "user_avatar_user_id_unique": {
++ "name": "user_avatar_user_id_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "user_id"
++ ]
++ }
++ },
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.user_notification_preference": {
++ "name": "user_notification_preference",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "user_id": {
++ "name": "user_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "email_enabled": {
++ "name": "email_enabled",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": true,
++ "default": false
++ },
++ "ntfy_enabled": {
++ "name": "ntfy_enabled",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": true,
++ "default": false
++ },
++ "ntfy_server_url": {
++ "name": "ntfy_server_url",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "ntfy_topic": {
++ "name": "ntfy_topic",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "ntfy_token": {
++ "name": "ntfy_token",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "gotify_enabled": {
++ "name": "gotify_enabled",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": true,
++ "default": false
++ },
++ "gotify_server_url": {
++ "name": "gotify_server_url",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "gotify_token": {
++ "name": "gotify_token",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "webhook_enabled": {
++ "name": "webhook_enabled",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": true,
++ "default": false
++ },
++ "webhook_url": {
++ "name": "webhook_url",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "webhook_secret": {
++ "name": "webhook_secret",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "task_assignment_enabled": {
++ "name": "task_assignment_enabled",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": true,
++ "default": true
++ },
++ "task_comment_enabled": {
++ "name": "task_comment_enabled",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": true,
++ "default": true
++ },
++ "task_status_change_enabled": {
++ "name": "task_status_change_enabled",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": true,
++ "default": true
++ },
++ "due_date_reminder_enabled": {
++ "name": "due_date_reminder_enabled",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": true,
++ "default": true
++ },
++ "due_date_reminder_lead_time_minutes": {
++ "name": "due_date_reminder_lead_time_minutes",
++ "type": "integer",
++ "primaryKey": false,
++ "notNull": true,
++ "default": 1440
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {},
++ "foreignKeys": {
++ "user_notification_preference_user_id_user_id_fk": {
++ "name": "user_notification_preference_user_id_user_id_fk",
++ "tableFrom": "user_notification_preference",
++ "tableTo": "user",
++ "columnsFrom": [
++ "user_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {
++ "user_notification_preference_user_id_unique": {
++ "name": "user_notification_preference_user_id_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "user_id"
++ ]
++ }
++ },
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.user_notification_workspace_project": {
++ "name": "user_notification_workspace_project",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "workspace_id": {
++ "name": "workspace_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "workspace_rule_id": {
++ "name": "workspace_rule_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "project_id": {
++ "name": "project_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "user_notification_workspace_project_ruleId_idx": {
++ "name": "user_notification_workspace_project_ruleId_idx",
++ "columns": [
++ {
++ "expression": "workspace_rule_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "user_notification_workspace_project_projectId_idx": {
++ "name": "user_notification_workspace_project_projectId_idx",
++ "columns": [
++ {
++ "expression": "project_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "user_notification_workspace_project_workspaceId_projectId_idx": {
++ "name": "user_notification_workspace_project_workspaceId_projectId_idx",
++ "columns": [
++ {
++ "expression": "workspace_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ },
++ {
++ "expression": "project_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "unwp_workspaceId_workspaceRuleId_idx": {
++ "name": "unwp_workspaceId_workspaceRuleId_idx",
++ "columns": [
++ {
++ "expression": "workspace_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ },
++ {
++ "expression": "workspace_rule_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "user_notification_workspace_project_workspace_id_workspace_id_fk": {
++ "name": "user_notification_workspace_project_workspace_id_workspace_id_fk",
++ "tableFrom": "user_notification_workspace_project",
++ "tableTo": "workspace",
++ "columnsFrom": [
++ "workspace_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ },
++ "user_notification_workspace_project_workspace_id_workspace_rule_id_user_notification_workspace_rule_workspace_id_id_fk": {
++ "name": "user_notification_workspace_project_workspace_id_workspace_rule_id_user_notification_workspace_rule_workspace_id_id_fk",
++ "tableFrom": "user_notification_workspace_project",
++ "tableTo": "user_notification_workspace_rule",
++ "columnsFrom": [
++ "workspace_id",
++ "workspace_rule_id"
++ ],
++ "columnsTo": [
++ "workspace_id",
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ },
++ "user_notification_workspace_project_workspace_id_project_id_project_workspace_id_id_fk": {
++ "name": "user_notification_workspace_project_workspace_id_project_id_project_workspace_id_id_fk",
++ "tableFrom": "user_notification_workspace_project",
++ "tableTo": "project",
++ "columnsFrom": [
++ "workspace_id",
++ "project_id"
++ ],
++ "columnsTo": [
++ "workspace_id",
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {
++ "user_notification_workspace_project_rule_project_unique": {
++ "name": "user_notification_workspace_project_rule_project_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "workspace_rule_id",
++ "project_id"
++ ]
++ }
++ },
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.user_notification_workspace_rule": {
++ "name": "user_notification_workspace_rule",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "user_id": {
++ "name": "user_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "workspace_id": {
++ "name": "workspace_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "is_active": {
++ "name": "is_active",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": true,
++ "default": true
++ },
++ "email_enabled": {
++ "name": "email_enabled",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": true,
++ "default": false
++ },
++ "ntfy_enabled": {
++ "name": "ntfy_enabled",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": true,
++ "default": false
++ },
++ "gotify_enabled": {
++ "name": "gotify_enabled",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": true,
++ "default": false
++ },
++ "webhook_enabled": {
++ "name": "webhook_enabled",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": true,
++ "default": false
++ },
++ "project_mode": {
++ "name": "project_mode",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "'all'"
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "user_notification_workspace_rule_userId_idx": {
++ "name": "user_notification_workspace_rule_userId_idx",
++ "columns": [
++ {
++ "expression": "user_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "user_notification_workspace_rule_workspaceId_idx": {
++ "name": "user_notification_workspace_rule_workspaceId_idx",
++ "columns": [
++ {
++ "expression": "workspace_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "user_notification_workspace_rule_user_id_user_id_fk": {
++ "name": "user_notification_workspace_rule_user_id_user_id_fk",
++ "tableFrom": "user_notification_workspace_rule",
++ "tableTo": "user",
++ "columnsFrom": [
++ "user_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ },
++ "user_notification_workspace_rule_workspace_id_workspace_id_fk": {
++ "name": "user_notification_workspace_rule_workspace_id_workspace_id_fk",
++ "tableFrom": "user_notification_workspace_rule",
++ "tableTo": "workspace",
++ "columnsFrom": [
++ "workspace_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {
++ "user_notification_workspace_rule_user_workspace_unique": {
++ "name": "user_notification_workspace_rule_user_workspace_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "user_id",
++ "workspace_id"
++ ]
++ },
++ "user_notification_workspace_rule_workspace_id_id_unique": {
++ "name": "user_notification_workspace_rule_workspace_id_id_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "workspace_id",
++ "id"
++ ]
++ }
++ },
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "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,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "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
++ },
++ "public.workflow_rule": {
++ "name": "workflow_rule",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "project_id": {
++ "name": "project_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "integration_type": {
++ "name": "integration_type",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "event_type": {
++ "name": "event_type",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "column_id": {
++ "name": "column_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "workflow_rule_projectId_idx": {
++ "name": "workflow_rule_projectId_idx",
++ "columns": [
++ {
++ "expression": "project_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "workflow_rule_columnId_idx": {
++ "name": "workflow_rule_columnId_idx",
++ "columns": [
++ {
++ "expression": "column_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "workflow_rule_project_id_project_id_fk": {
++ "name": "workflow_rule_project_id_project_id_fk",
++ "tableFrom": "workflow_rule",
++ "tableTo": "project",
++ "columnsFrom": [
++ "project_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ },
++ "workflow_rule_column_id_column_id_fk": {
++ "name": "workflow_rule_column_id_column_id_fk",
++ "tableFrom": "workflow_rule",
++ "tableTo": "column",
++ "columnsFrom": [
++ "column_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.workspace": {
++ "name": "workspace",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "name": {
++ "name": "name",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "slug": {
++ "name": "slug",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "logo": {
++ "name": "logo",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "metadata": {
++ "name": "metadata",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "description": {
++ "name": "description",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true
++ }
++ },
++ "indexes": {},
++ "foreignKeys": {},
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {
++ "workspace_slug_unique": {
++ "name": "workspace_slug_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "slug"
++ ]
++ }
++ },
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.workspace_billing": {
++ "name": "workspace_billing",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "workspace_id": {
++ "name": "workspace_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "founding_free": {
++ "name": "founding_free",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": true,
++ "default": false
++ },
++ "trial_ends_at": {
++ "name": "trial_ends_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "creem_customer_id": {
++ "name": "creem_customer_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "creem_subscription_id": {
++ "name": "creem_subscription_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "creem_product_id": {
++ "name": "creem_product_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "plan": {
++ "name": "plan",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "billing_interval": {
++ "name": "billing_interval",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "status": {
++ "name": "status",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "seats": {
++ "name": "seats",
++ "type": "integer",
++ "primaryKey": false,
++ "notNull": true,
++ "default": 1
++ },
++ "current_period_end": {
++ "name": "current_period_end",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "canceled_at": {
++ "name": "canceled_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "workspace_billing_workspaceId_idx": {
++ "name": "workspace_billing_workspaceId_idx",
++ "columns": [
++ {
++ "expression": "workspace_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "workspace_billing_workspace_id_workspace_id_fk": {
++ "name": "workspace_billing_workspace_id_workspace_id_fk",
++ "tableFrom": "workspace_billing",
++ "tableTo": "workspace",
++ "columnsFrom": [
++ "workspace_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {
++ "workspace_billing_workspace_id_unique": {
++ "name": "workspace_billing_workspace_id_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "workspace_id"
++ ]
++ },
++ "workspace_billing_creem_subscription_id_unique": {
++ "name": "workspace_billing_creem_subscription_id_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "creem_subscription_id"
++ ]
++ }
++ },
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.workspace_member_access": {
++ "name": "workspace_member_access",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "workspace_id": {
++ "name": "workspace_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "user_id": {
++ "name": "user_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "project_access": {
++ "name": "project_access",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "'all'"
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "workspace_member_access_userId_idx": {
++ "name": "workspace_member_access_userId_idx",
++ "columns": [
++ {
++ "expression": "user_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "workspace_member_access_workspace_id_workspace_id_fk": {
++ "name": "workspace_member_access_workspace_id_workspace_id_fk",
++ "tableFrom": "workspace_member_access",
++ "tableTo": "workspace",
++ "columnsFrom": [
++ "workspace_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "no action"
++ },
++ "workspace_member_access_user_id_user_id_fk": {
++ "name": "workspace_member_access_user_id_user_id_fk",
++ "tableFrom": "workspace_member_access",
++ "tableTo": "user",
++ "columnsFrom": [
++ "user_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "no action"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {
++ "workspace_member_access_workspace_user_unique": {
++ "name": "workspace_member_access_workspace_user_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "workspace_id",
++ "user_id"
++ ]
++ }
++ },
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.workspace_member_project": {
++ "name": "workspace_member_project",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "workspace_id": {
++ "name": "workspace_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "user_id": {
++ "name": "user_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "project_id": {
++ "name": "project_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "created_at": {
++ "name": "created_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "(now() AT TIME ZONE 'utc')"
++ }
++ },
++ "indexes": {
++ "workspace_member_project_projectId_idx": {
++ "name": "workspace_member_project_projectId_idx",
++ "columns": [
++ {
++ "expression": "project_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "workspace_member_project_user_id_user_id_fk": {
++ "name": "workspace_member_project_user_id_user_id_fk",
++ "tableFrom": "workspace_member_project",
++ "tableTo": "user",
++ "columnsFrom": [
++ "user_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "no action"
++ },
++ "workspace_member_project_workspace_id_project_id_project_workspace_id_id_fk": {
++ "name": "workspace_member_project_workspace_id_project_id_project_workspace_id_id_fk",
++ "tableFrom": "workspace_member_project",
++ "tableTo": "project",
++ "columnsFrom": [
++ "workspace_id",
++ "project_id"
++ ],
++ "columnsTo": [
++ "workspace_id",
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {
++ "workspace_member_project_workspace_user_project_unique": {
++ "name": "workspace_member_project_workspace_user_project_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "workspace_id",
++ "user_id",
++ "project_id"
++ ]
++ }
++ },
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ },
++ "public.workspace_member": {
++ "name": "workspace_member",
++ "schema": "",
++ "columns": {
++ "id": {
++ "name": "id",
++ "type": "text",
++ "primaryKey": true,
++ "notNull": true
++ },
++ "workspace_id": {
++ "name": "workspace_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "user_id": {
++ "name": "user_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ },
++ "role": {
++ "name": "role",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "'member'"
++ },
++ "joined_at": {
++ "name": "joined_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true
++ }
++ },
++ "indexes": {
++ "workspace_member_workspaceId_idx": {
++ "name": "workspace_member_workspaceId_idx",
++ "columns": [
++ {
++ "expression": "workspace_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ },
++ "workspace_member_userId_idx": {
++ "name": "workspace_member_userId_idx",
++ "columns": [
++ {
++ "expression": "user_id",
++ "isExpression": false,
++ "asc": true,
++ "nulls": "last"
++ }
++ ],
++ "isUnique": false,
++ "concurrently": false,
++ "method": "btree",
++ "with": {}
++ }
++ },
++ "foreignKeys": {
++ "workspace_member_workspace_id_workspace_id_fk": {
++ "name": "workspace_member_workspace_id_workspace_id_fk",
++ "tableFrom": "workspace_member",
++ "tableTo": "workspace",
++ "columnsFrom": [
++ "workspace_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "no action"
++ },
++ "workspace_member_user_id_user_id_fk": {
++ "name": "workspace_member_user_id_user_id_fk",
++ "tableFrom": "workspace_member",
++ "tableTo": "user",
++ "columnsFrom": [
++ "user_id"
++ ],
++ "columnsTo": [
++ "id"
++ ],
++ "onDelete": "cascade",
++ "onUpdate": "no action"
++ }
++ },
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {},
++ "policies": {},
++ "checkConstraints": {},
++ "isRLSEnabled": false
++ }
++ },
++ "enums": {},
++ "schemas": {},
++ "sequences": {},
++ "roles": {},
++ "policies": {},
++ "views": {},
++ "_meta": {
++ "columns": {},
++ "schemas": {},
++ "tables": {}
++ }
++}
diff --cc apps/api/drizzle/meta/_journal.json
index ffac8ecfa,a15494165..9516f1eda
--- a/apps/api/drizzle/meta/_journal.json
+++ b/apps/api/drizzle/meta/_journal.json
@@@ -432,9 -432,16 +432,23 @@@
{
"idx": 61,
"version": "7",
- "when": 1791320120902,
- "tag": "0061_glamorous_ghost_rider",
+ "when": 1791391236556,
+ "tag": "0061_slim_yellowjacket",
+ "breakpoints": true
+ },
+ {
+ "idx": 62,
+ "version": "7",
+ "when": 1791580417885,
+ "tag": "0062_motionless_sister_grimm",
+ "breakpoints": true
++ },
++ {
++ "idx": 63,
++ "version": "7",
++ "when": 1791658310898,
++ "tag": "0063_glamorous_tiger_shark",
+ "breakpoints": true
}
]
}
diff --cc apps/api/src/database/schema.ts
index fd7c7b341,30fd02bc7..88b168e19
--- a/apps/api/src/database/schema.ts
+++ b/apps/api/src/database/schema.ts
@@@ -14,8 -14,12 +14,13 @@@ import
uniqueIndex,
} from "drizzle-orm/pg-core";
import type { GitHubImportState } from "../github-integration/import-state";
+import type { TaskRecurrence } from "../task/recurrence/schema";
+ // Timestamp columns without a time zone hold UTC (Drizzle reads and writes
+ // them as UTC). A bare now() default would be cast through the session time
+ // zone, storing shifted times on servers not running in UTC.
+ const utcNow = sql`(now() AT TIME ZONE 'utc')`;
+
const bytea = customType<{ data: Buffer; driverData: Buffer }>({
dataType() {
return "bytea";
@@@ -516,10 -550,11 +551,12 @@@ export const taskTable = pgTable
priority: text("priority").default("low").notNull(),
startDate: timestamp("start_date", { mode: "date" }),
dueDate: timestamp("due_date", { mode: "date" }),
+ recurrence: jsonb("recurrence").$type<TaskRecurrence>(),
- createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),
+ createdAt: timestamp("created_at", { mode: "date" })
+ .default(utcNow)
+ .notNull(),
updatedAt: timestamp("updated_at", { mode: "date" })
- .defaultNow()
+ .default(utcNow)
.$onUpdate(() => new Date())
.notNull(),
},
diff --cc apps/api/src/task/index.ts
index afcf5c967,df97c14e3..d8f24fbb4
--- a/apps/api/src/task/index.ts
+++ b/apps/api/src/task/index.ts
@@@ -301,12 -297,11 +300,11 @@@ const createTaskRoute = createRoute(
},
responses: {
200: jsonResponse("The created task", taskSchema),
- 400: errorResponse(
- "Invalid body, unknown project, or a repeating task in a final column",
- ),
- 400: errorResponse("Invalid body"),
++ 400: errorResponse("Invalid body, or a repeating task in a final column"),
403: errorResponse(
- "No workspace access, or missing task:create permission",
+ "No access to the project, or missing task:create permission",
),
+ 404: errorResponse("Project not found"),
},
});
@@@ -633,39 -629,6 +632,39 @@@ const updateTaskDueDateRoute = createRo
},
});
+const updateTaskRecurrenceRoute = createRoute({
+ method: "put",
+ operationId: "updateTaskRecurrence",
+ path: "/recurrence/{id}",
+ tags: ["Tasks"],
+ summary: "Update task recurrence",
+ description:
+ "Make a task repeat, or stop it repeating. When a repeating task moves into a final column, the next task is created in the project's first open column with its dates moved forward one interval from the completed task's due date, and the rule moves to that new task. A completed task cannot start repeating: reopen it, or set the rule on its next task.",
+ middleware: [
+ workspaceAccess.fromTask(),
+ requireWorkspacePermission({ task: ["update"] }),
+ requireEntitlement,
+ ] as const,
+ request: {
+ params: taskParam,
+ body: {
+ required: true,
+ content: { "application/json": { schema: updateRecurrenceBody } },
+ },
+ },
+ responses: {
+ 200: jsonResponse("The updated task", taskSchema),
+ 400: errorResponse("Invalid recurrence rule"),
+ 403: errorResponse(
- "No workspace access, or missing task:update permission",
++ "No access to the project, or missing task:update permission",
+ ),
+ 404: errorResponse("Task not found"),
+ 409: errorResponse(
+ "The task is completed and no longer holds a rule; reopen it first",
+ ),
+ },
+});
+
const updateTaskTitleRoute = createRoute({
method: "put",
operationId: "updateTaskTitle",
diff --cc apps/docs/openapi.json
index 7139f4fe7,7d0f4f7c0..82e1ed9ee
--- a/apps/docs/openapi.json
+++ b/apps/docs/openapi.json
@@@ -9959,11 -10856,11 +10917,11 @@@
}
},
"400": {
- "description": "Invalid body, unknown project, or a repeating task in a final column",
- "description": "Invalid body",
++ "description": "Invalid body, or a repeating task in a final column",
"content": {
- "text/plain": {
+ "application/json": {
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/ApiError"
}
}
}
@@@ -11006,106 -12086,6 +12147,116 @@@
}
}
},
+ "/task/recurrence/{id}": {
+ "put": {
+ "operationId": "updateTaskRecurrence",
+ "tags": [
+ "Tasks"
+ ],
+ "summary": "Update task recurrence",
+ "description": "Make a task repeat, or stop it repeating. When a repeating task moves into a final column, the next task is created in the project's first open column with its dates moved forward one interval from the completed task's due date, and the rule moves to that new task. A completed task cannot start repeating: reopen it, or set the rule on its next task.",
+ "parameters": [
+ {
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "name": "id",
+ "in": "path"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "recurrence": {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/TaskRecurrence"
+ },
+ {
+ "description": "Null stops the task from repeating."
+ }
+ ]
+ }
+ },
+ "required": [
+ "recurrence"
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "The updated task",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Task"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Invalid recurrence rule",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "401": {
- "description": "Missing or invalid credentials"
++ "description": "Missing or invalid credentials",
++ "content": {
++ "application/json": {
++ "schema": {
++ "$ref": "#/components/schemas/ApiError"
++ }
++ }
++ }
+ },
+ "403": {
- "description": "No workspace access, or missing task:update permission",
++ "description": "No access to the project, or missing task:update permission",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Task not found",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
+ },
+ "409": {
+ "description": "The task is completed and no longer holds a rule; reopen it first",
+ "content": {
- "text/plain": {
++ "application/json": {
+ "schema": {
- "type": "string"
++ "$ref": "#/components/schemas/ApiError"
+ }
+ }
+ }
++ },
++ "429": {
++ "$ref": "#/components/responses/ApiKeyRateLimited"
+ }
+ }
+ }
+ },
"/task/title/{id}": {
"put": {
"operationId": "updateTaskTitle",
diff --cc apps/web/src/components/shared/modals/create-task-modal.tsx
index aaed8ae1e,a37f3d6ab..5b7deebcf
--- a/apps/web/src/components/shared/modals/create-task-modal.tsx
+++ b/apps/web/src/components/shared/modals/create-task-modal.tsx
@@@ -96,9 -94,10 +96,11 @@@ import { getInitials } from "@/lib/get-
import { resolveLabelColor } from "@/lib/label-color";
import { getPriorityIcon } from "@/lib/priority";
import { toast } from "@/lib/toast";
+ import { useAutoGrowTextarea } from "@/hooks/use-auto-grow-textarea";
+ import { stripLineBreaks } from "@/lib/strip-line-breaks";
import useProjectStore from "@/store/project";
import type Task from "@/types/task";
+import type { TaskRecurrence } from "@/types/task/recurrence";
import { getInitialTaskColumn } from "./initial-task-column";
type CreateTaskModalProps = {
diff --cc i18n/az-AZ.json
index 5935bddf4,bb8e2c112..288d11a55
--- a/i18n/az-AZ.json
+++ b/i18n/az-AZ.json
@@@ -2491,34 -2614,8 +2613,35 @@@
"terracotta": "Bişmiş gil rəngi",
"rose": "Çəhrayı",
"crimson": "Tünd qırmızı"
- }
+ },
+ "editLabels": "Etiketləri redaktə et"
+ },
+ "recurrence": {
+ "updateError": "Tapşırığın təkrarını yeniləmək alınmadı",
+ "every": "Hər",
+ "hint": "Bu tapşırıq tamamlandıqda növbəti yaradılır.",
+ "interval": "İnterval",
+ "onDays": "Bu günlərdə",
+ "pattern": {
+ "daily": "Hər gün",
+ "monthly": "Hər ay",
+ "periodically": "Dövri",
+ "weekly": "Hər həftə",
+ "yearly": "Hər il"
+ },
+ "repeats": "Təkrar",
+ "toggle": "Təkrarla",
+ "unit": {
+ "days_one": "gündən bir",
+ "days_other": "gündən bir",
+ "label": "Vahid",
+ "months_one": "aydan bir",
+ "months_other": "aydan bir",
+ "weeks_one": "həftədən bir",
+ "weeks_other": "həftədən bir",
+ "years_one": "ildən bir",
+ "years_other": "ildən bir"
+ }
}
},
"backlog": {
diff --cc i18n/de-DE.json
index 4ed19a8d2,384ea011f..875f6cff5
--- a/i18n/de-DE.json
+++ b/i18n/de-DE.json
@@@ -2491,34 -2614,8 +2613,35 @@@
"terracotta": "Terrakotta",
"rose": "Rosa",
"crimson": "Karmesinrot"
- }
+ },
+ "editLabels": "Labels bearbeiten"
+ },
+ "recurrence": {
+ "updateError": "Wiederholung konnte nicht aktualisiert werden",
+ "every": "Alle",
+ "hint": "Wenn diese Aufgabe erledigt ist, wird die nächste erstellt.",
+ "interval": "Intervall",
+ "onDays": "An diesen Tagen",
+ "pattern": {
+ "daily": "Täglich",
+ "monthly": "Monatlich",
+ "periodically": "Periodisch",
+ "weekly": "Wöchentlich",
+ "yearly": "Jährlich"
+ },
+ "repeats": "Wiederholung",
+ "toggle": "Wiederholen",
+ "unit": {
+ "days_one": "Tag",
+ "days_other": "Tage",
+ "label": "Einheit",
+ "months_one": "Monat",
+ "months_other": "Monate",
+ "weeks_one": "Woche",
+ "weeks_other": "Wochen",
+ "years_one": "Jahr",
+ "years_other": "Jahre"
+ }
}
},
"backlog": {
diff --cc i18n/el-GR.json
index 58d9e85ff,ba37057b7..9820c3c48
--- a/i18n/el-GR.json
+++ b/i18n/el-GR.json
@@@ -2491,34 -2614,8 +2613,35 @@@
"terracotta": "Τερακότα",
"rose": "Ροζ",
"crimson": "Βυσσινί"
- }
+ },
+ "editLabels": "Επεξεργασία ετικετών"
+ },
+ "recurrence": {
+ "updateError": "Αποτυχία ενημέρωσης επανάληψης εργασίας",
+ "every": "Κάθε",
+ "hint": "Όταν ολοκληρωθεί αυτή η εργασία, δημιουργείται η επόμενη.",
+ "interval": "Διάστημα",
+ "onDays": "Αυτές τις ημέρες",
+ "pattern": {
+ "daily": "Καθημερινά",
+ "monthly": "Μηνιαία",
+ "periodically": "Περιοδικά",
+ "weekly": "Εβδομαδιαία",
+ "yearly": "Ετήσια"
+ },
+ "repeats": "Επαναλαμβάνεται",
+ "toggle": "Επανάληψη",
+ "unit": {
+ "days_one": "ημέρα",
+ "days_other": "ημέρες",
+ "label": "Μονάδα",
+ "months_one": "μήνα",
+ "months_other": "μήνες",
+ "weeks_one": "εβδομάδα",
+ "weeks_other": "εβδομάδες",
+ "years_one": "χρόνο",
+ "years_other": "χρόνια"
+ }
}
},
"backlog": {
diff --cc i18n/fr-FR.json
index be4f5cc23,55ccebd12..07cdbfaad
--- a/i18n/fr-FR.json
+++ b/i18n/fr-FR.json
@@@ -2503,38 -2629,8 +2628,39 @@@
"terracotta": "Terre cuite",
"rose": "Rose",
"crimson": "Cramoisi"
- }
+ },
+ "editLabels": "Modifier les labels"
+ },
+ "recurrence": {
+ "updateError": "Échec de la mise à jour de la répétition de la tâche",
+ "every": "Fréquence",
+ "hint": "Une fois cette tâche terminée, la suivante est créée.",
+ "interval": "Intervalle",
+ "onDays": "Les jours suivants",
+ "pattern": {
+ "daily": "Tous les jours",
+ "monthly": "Tous les mois",
+ "periodically": "Périodiquement",
+ "weekly": "Toutes les semaines",
+ "yearly": "Tous les ans"
+ },
+ "repeats": "Répétition",
+ "toggle": "Répéter",
+ "unit": {
+ "days_many": "jours",
+ "days_one": "jour",
+ "days_other": "jours",
+ "label": "Unité",
+ "months_many": "mois",
+ "months_one": "mois",
+ "months_other": "mois",
+ "weeks_many": "semaines",
+ "weeks_one": "semaine",
+ "weeks_other": "semaines",
+ "years_many": "ans",
+ "years_one": "an",
+ "years_other": "ans"
+ }
}
},
"backlog": {
diff --cc i18n/hi-IN.json
index 55959a41e,c03fe2a48..f60268baa
--- a/i18n/hi-IN.json
+++ b/i18n/hi-IN.json
@@@ -2491,34 -2614,8 +2613,35 @@@
"terracotta": "टेराकोटा",
"rose": "गुलाब",
"crimson": "किरमिज़ी"
- }
+ },
+ "editLabels": "लेबल संपादित करें"
+ },
+ "recurrence": {
+ "updateError": "कार्य का दोहराव अपडेट करने में विफल",
+ "every": "हर",
+ "hint": "यह कार्य पूरा होने पर अगला कार्य बनाया जाता है।",
+ "interval": "अंतराल",
+ "onDays": "इन दिनों पर",
+ "pattern": {
+ "daily": "रोज़ाना",
+ "monthly": "मासिक",
+ "periodically": "समय-समय पर",
+ "weekly": "साप्ताहिक",
+ "yearly": "वार्षिक"
+ },
+ "repeats": "दोहराव",
+ "toggle": "दोहराएँ",
+ "unit": {
+ "days_one": "दिन",
+ "days_other": "दिन",
+ "label": "इकाई",
+ "months_one": "महीना",
+ "months_other": "महीने",
+ "weeks_one": "सप्ताह",
+ "weeks_other": "सप्ताह",
+ "years_one": "साल",
+ "years_other": "साल"
+ }
}
},
"backlog": {
diff --cc i18n/id-ID.json
index 693187c0d,7e5aa551b..3bc4fdc69
--- a/i18n/id-ID.json
+++ b/i18n/id-ID.json
@@@ -2479,30 -2599,8 +2598,31 @@@
"terracotta": "Terracotta",
"rose": "Rose",
"crimson": "Crimson"
- }
+ },
+ "editLabels": "Edit label"
+ },
+ "recurrence": {
+ "updateError": "Gagal memperbarui pengulangan tugas",
+ "every": "Setiap",
+ "hint": "Saat tugas ini selesai, tugas berikutnya dibuat.",
+ "interval": "Interval",
+ "onDays": "Pada hari-hari ini",
+ "pattern": {
+ "daily": "Harian",
+ "monthly": "Bulanan",
+ "periodically": "Berkala",
+ "weekly": "Mingguan",
+ "yearly": "Tahunan"
+ },
+ "repeats": "Berulang",
+ "toggle": "Ulangi",
+ "unit": {
+ "days_other": "hari",
+ "label": "Satuan",
+ "months_other": "bulan",
+ "weeks_other": "minggu",
+ "years_other": "tahun"
+ }
}
},
"backlog": {
diff --cc i18n/it-IT.json
index d89a555f8,86df7139a..e45a670c3
--- a/i18n/it-IT.json
+++ b/i18n/it-IT.json
@@@ -2503,38 -2629,8 +2628,39 @@@
"terracotta": "Terracotta",
"rose": "Rosa",
"crimson": "Cremisi"
- }
+ },
+ "editLabels": "Modifica etichette"
+ },
+ "recurrence": {
+ "updateError": "Aggiornamento ripetizione attività fallito",
+ "every": "Ogni",
+ "hint": "Quando questa attività è completata, viene creata la successiva.",
+ "interval": "Intervallo",
+ "onDays": "In questi giorni",
+ "pattern": {
+ "daily": "Ogni giorno",
+ "monthly": "Ogni mese",
+ "periodically": "Periodicamente",
+ "weekly": "Ogni settimana",
+ "yearly": "Ogni anno"
+ },
+ "repeats": "Si ripete",
+ "toggle": "Ripeti",
+ "unit": {
+ "days_many": "giorni",
+ "days_one": "giorno",
+ "days_other": "giorni",
+ "label": "Unità",
+ "months_many": "mesi",
+ "months_one": "mese",
+ "months_other": "mesi",
+ "weeks_many": "settimane",
+ "weeks_one": "settimana",
+ "weeks_other": "settimane",
+ "years_many": "anni",
+ "years_one": "anno",
+ "years_other": "anni"
+ }
}
},
"backlog": {
diff --cc i18n/ja-JP.json
index 45c4f768a,529849683..dca476c92
--- a/i18n/ja-JP.json
+++ b/i18n/ja-JP.json
@@@ -2479,30 -2599,8 +2598,31 @@@
"terracotta": "テラコッタ",
"rose": "ローズ",
"crimson": "クリムゾン"
- }
+ },
+ "editLabels": "ラベルを編集"
+ },
+ "recurrence": {
+ "updateError": "繰り返しの更新に失敗しました",
+ "every": "間隔",
+ "hint": "このタスクが完了すると、次のタスクが作成されます。",
+ "interval": "間隔",
+ "onDays": "曜日",
+ "pattern": {
+ "daily": "毎日",
+ "monthly": "毎月",
+ "periodically": "定期的",
+ "weekly": "毎週",
+ "yearly": "毎年"
+ },
+ "repeats": "繰り返し",
+ "toggle": "繰り返し",
+ "unit": {
+ "days_other": "日ごと",
+ "label": "単位",
+ "months_other": "か月ごと",
+ "weeks_other": "週間ごと",
+ "years_other": "年ごと"
+ }
}
},
"backlog": {
diff --cc i18n/ko-KR.json
index ba1cecad0,d4e22906d..468d49562
--- a/i18n/ko-KR.json
+++ b/i18n/ko-KR.json
@@@ -2479,30 -2599,8 +2598,31 @@@
"terracotta": "테라코타",
"rose": "로즈",
"crimson": "크림슨"
- }
+ },
+ "editLabels": "라벨 편집"
+ },
+ "recurrence": {
+ "updateError": "작업 반복 업데이트에 실패했습니다",
+ "every": "간격",
+ "hint": "이 작업을 완료하면 다음 작업이 생성됩니다.",
+ "interval": "간격",
+ "onDays": "반복 요일",
+ "pattern": {
+ "daily": "매일",
+ "monthly": "매월",
+ "periodically": "주기적으로",
+ "weekly": "매주",
+ "yearly": "매년"
+ },
+ "repeats": "반복",
+ "toggle": "반복",
+ "unit": {
+ "days_other": "일마다",
+ "label": "단위",
+ "months_other": "개월마다",
+ "weeks_other": "주마다",
+ "years_other": "년마다"
+ }
}
},
"backlog": {
diff --cc i18n/mk-MK.json
index 3da6b92c3,6186c7cba..52cddeedf
--- a/i18n/mk-MK.json
+++ b/i18n/mk-MK.json
@@@ -2491,34 -2614,8 +2613,35 @@@
"terracotta": "Теракота",
"rose": "Роза",
"crimson": "Гримизна"
- }
+ },
+ "editLabels": "Уреди етикети"
+ },
+ "recurrence": {
+ "updateError": "Неуспешно ажурирање на повторувањето на задачата",
+ "every": "На секои",
+ "hint": "Кога оваа задача ќе заврши, ќе се создаде следната.",
+ "interval": "Интервал",
+ "onDays": "Во овие денови",
+ "pattern": {
+ "daily": "Дневно",
+ "monthly": "Месечно",
+ "periodically": "Периодично",
+ "weekly": "Неделно",
+ "yearly": "Годишно"
+ },
+ "repeats": "Повторување",
+ "toggle": "Повторувај",
+ "unit": {
+ "days_one": "ден",
+ "days_other": "дена",
+ "label": "Единица",
+ "months_one": "месец",
+ "months_other": "месеци",
+ "weeks_one": "недела",
+ "weeks_other": "недели",
+ "years_one": "година",
+ "years_other": "години"
+ }
}
},
"backlog": {
diff --cc i18n/nl-NL.json
index 75ef0bf1c,b1571bd19..618628ba3
--- a/i18n/nl-NL.json
+++ b/i18n/nl-NL.json
@@@ -2480,34 -2603,8 +2602,35 @@@
"terracotta": "Terracotta",
"rose": "Roos",
"crimson": "Karmozijn"
- }
+ },
+ "editLabels": "Labels bewerken"
+ },
+ "recurrence": {
+ "updateError": "Bijwerken herhaling mislukt",
+ "every": "Om de",
+ "hint": "Als deze taak klaar is, wordt de volgende aangemaakt.",
+ "interval": "Interval",
+ "onDays": "Op deze dagen",
+ "pattern": {
+ "daily": "Dagelijks",
+ "monthly": "Maandelijks",
+ "periodically": "Periodiek",
+ "weekly": "Wekelijks",
+ "yearly": "Jaarlijks"
+ },
+ "repeats": "Herhaalt",
+ "toggle": "Herhalen",
+ "unit": {
+ "days_one": "dag",
+ "days_other": "dagen",
+ "label": "Eenheid",
+ "months_one": "maand",
+ "months_other": "maanden",
+ "weeks_one": "week",
+ "weeks_other": "weken",
+ "years_one": "jaar",
+ "years_other": "jaar"
+ }
}
},
"backlog": {
diff --cc i18n/pt-BR.json
index 0b0d3aab4,c0f866828..b8abab2ea
--- a/i18n/pt-BR.json
+++ b/i18n/pt-BR.json
@@@ -2503,38 -2629,8 +2628,39 @@@
"terracotta": "Terracota",
"rose": "Rosa",
"crimson": "Carmesim"
- }
+ },
+ "editLabels": "Editar etiquetas"
+ },
+ "recurrence": {
+ "updateError": "Falha ao atualizar a repetição da tarefa",
+ "every": "A cada",
+ "hint": "Quando esta tarefa for concluída, a próxima será criada.",
+ "interval": "Intervalo",
+ "onDays": "Nestes dias",
+ "pattern": {
+ "daily": "Diariamente",
+ "monthly": "Mensalmente",
+ "periodically": "Periodicamente",
+ "weekly": "Semanalmente",
+ "yearly": "Anualmente"
+ },
+ "repeats": "Repete",
+ "toggle": "Repetir",
+ "unit": {
+ "days_many": "dias",
+ "days_one": "dia",
+ "days_other": "dias",
+ "label": "Unidade",
+ "months_many": "meses",
+ "months_one": "mês",
+ "months_other": "meses",
+ "weeks_many": "semanas",
+ "weeks_one": "semana",
+ "weeks_other": "semanas",
+ "years_many": "anos",
+ "years_one": "ano",
+ "years_other": "anos"
+ }
}
},
"backlog": {
diff --cc i18n/ru-RU.json
index 6d61ff358,d96c89583..83b5626c6
--- a/i18n/ru-RU.json
+++ b/i18n/ru-RU.json
@@@ -2523,42 -2652,8 +2651,43 @@@
"terracotta": "Терракота",
"rose": "Роза",
"crimson": "Малиновый"
- }
+ },
+ "editLabels": "Изменить метки"
+ },
+ "recurrence": {
+ "updateError": "Не удалось обновить повтор задачи",
+ "every": "Каждые",
+ "hint": "Когда эта задача будет выполнена, будет создана следующая.",
+ "interval": "Интервал",
+ "onDays": "В эти дни",
+ "pattern": {
+ "daily": "Ежедневно",
+ "monthly": "Ежемесячно",
+ "periodically": "Периодически",
+ "weekly": "Еженедельно",
+ "yearly": "Ежегодно"
+ },
+ "repeats": "Повтор",
+ "toggle": "Повторять",
+ "unit": {
+ "days_few": "дня",
+ "days_many": "дней",
+ "days_one": "день",
+ "days_other": "дня",
+ "label": "Единица",
+ "months_few": "месяца",
+ "months_many": "месяцев",
+ "months_one": "месяц",
+ "months_other": "месяца",
+ "weeks_few": "недели",
+ "weeks_many": "недель",
+ "weeks_one": "неделю",
+ "weeks_other": "недели",
+ "years_few": "года",
+ "years_many": "лет",
+ "years_one": "год",
+ "years_other": "года"
+ }
}
},
"backlog": {
diff --cc i18n/tr-TR.json
index 3b8112d43,acf0a7a9c..ea3cb9f50
--- a/i18n/tr-TR.json
+++ b/i18n/tr-TR.json
@@@ -2491,34 -2614,8 +2613,35 @@@
"terracotta": "Terakota",
"rose": "Gül Kurusu",
"crimson": "Koyu Kırmızı"
- }
+ },
+ "editLabels": "Etiketleri düzenle"
+ },
+ "recurrence": {
+ "updateError": "Talep tekrarı güncellenemedi",
+ "every": "Her",
+ "hint": "Bu talep tamamlandığında bir sonraki oluşturulur.",
+ "interval": "Aralık",
+ "onDays": "Bu günlerde",
+ "pattern": {
+ "daily": "Her gün",
+ "monthly": "Her ay",
+ "periodically": "Periyodik",
+ "weekly": "Her hafta",
+ "yearly": "Her yıl"
+ },
+ "repeats": "Tekrar",
+ "toggle": "Tekrarla",
+ "unit": {
+ "days_one": "günde",
+ "days_other": "günde",
+ "label": "Birim",
+ "months_one": "ayda",
+ "months_other": "ayda",
+ "weeks_one": "haftada",
+ "weeks_other": "haftada",
+ "years_one": "yılda",
+ "years_other": "yılda"
+ }
}
},
"backlog": {
diff --cc i18n/uk-UA.json
index 2fa740af0,374ae6e9a..b263b19b7
--- a/i18n/uk-UA.json
+++ b/i18n/uk-UA.json
@@@ -2515,42 -2644,8 +2643,43 @@@
"terracotta": "Теракота",
"rose": "Троянда",
"crimson": "Багряний"
- }
+ },
+ "editLabels": "Редагувати мітки"
+ },
+ "recurrence": {
+ "updateError": "Не вдалося оновити повторення завдання",
+ "every": "Кожні",
+ "hint": "Коли це завдання буде виконано, буде створено наступне.",
+ "interval": "Інтервал",
+ "onDays": "У ці дні",
+ "pattern": {
+ "daily": "Щодня",
+ "monthly": "Щомісяця",
+ "periodically": "Періодично",
+ "weekly": "Щотижня",
+ "yearly": "Щороку"
+ },
+ "repeats": "Повторення",
+ "toggle": "Повторювати",
+ "unit": {
+ "days_few": "дні",
+ "days_many": "днів",
+ "days_one": "день",
+ "days_other": "дня",
+ "label": "Одиниця",
+ "months_few": "місяці",
+ "months_many": "місяців",
+ "months_one": "місяць",
+ "months_other": "місяця",
+ "weeks_few": "тижні",
+ "weeks_many": "тижнів",
+ "weeks_one": "тиждень",
+ "weeks_other": "тижня",
+ "years_few": "роки",
+ "years_many": "років",
+ "years_one": "рік",
+ "years_other": "року"
+ }
}
},
"backlog": {
diff --cc i18n/vi-VN.json
index 4ae882ad2,080b03e0b..797dee4ab
--- a/i18n/vi-VN.json
+++ b/i18n/vi-VN.json
@@@ -2479,30 -2599,8 +2598,31 @@@
"terracotta": "Đất nung",
"rose": "Hồng",
"crimson": "Đỏ thẫm"
- }
+ },
+ "editLabels": "Chỉnh sửa nhãn"
+ },
+ "recurrence": {
+ "updateError": "Không thể cập nhật lặp lại công việc",
+ "every": "Mỗi",
+ "hint": "Khi công việc này hoàn thành, công việc tiếp theo sẽ được tạo.",
+ "interval": "Khoảng cách",
+ "onDays": "Vào các ngày",
+ "pattern": {
+ "daily": "Hằng ngày",
+ "monthly": "Hằng tháng",
+ "periodically": "Định kỳ",
+ "weekly": "Hằng tuần",
+ "yearly": "Hằng năm"
+ },
+ "repeats": "Lặp lại",
+ "toggle": "Lặp lại",
+ "unit": {
+ "days_other": "ngày",
+ "label": "Đơn vị",
+ "months_other": "tháng",
+ "weeks_other": "tuần",
+ "years_other": "năm"
+ }
}
},
"backlog": {
diff --cc i18n/zh-CN.json
index 05274fdc8,694352d00..c8e296b7c
--- a/i18n/zh-CN.json
+++ b/i18n/zh-CN.json
@@@ -2479,30 -2599,8 +2598,31 @@@
"terracotta": "赤陶",
"rose": "玫红",
"crimson": "深红"
- }
+ },
+ "editLabels": "编辑标签"
+ },
+ "recurrence": {
+ "updateError": "更新任务重复设置失败",
+ "every": "每",
+ "hint": "完成此任务后,将创建下一个任务。",
+ "interval": "间隔",
+ "onDays": "重复日",
+ "pattern": {
+ "daily": "每天",
+ "monthly": "每月",
+ "periodically": "定期",
+ "weekly": "每周",
+ "yearly": "每年"
+ },
+ "repeats": "重复",
+ "toggle": "重复",
+ "unit": {
+ "days_other": "天",
+ "label": "单位",
+ "months_other": "个月",
+ "weeks_other": "周",
+ "years_other": "年"
+ }
}
},
"backlog": {
diff --cc i18n/zh-TW.json
index 5a0b4edf2,c9ae7b5b0..dbc8a80c7
--- a/i18n/zh-TW.json
+++ b/i18n/zh-TW.json
@@@ -2479,30 -2599,8 +2598,31 @@@
"terracotta": "赤陶",
"rose": "玫瑰紅",
"crimson": "深紅"
- }
+ },
+ "editLabels": "編輯標籤"
+ },
+ "recurrence": {
+ "updateError": "更新任務重複設定失敗",
+ "every": "每",
+ "hint": "完成此任務後,將建立下一個任務。",
+ "interval": "間隔",
+ "onDays": "重複日",
+ "pattern": {
+ "daily": "每天",
+ "monthly": "每月",
+ "periodically": "定期",
+ "weekly": "每週",
+ "yearly": "每年"
+ },
+ "repeats": "重複",
+ "toggle": "重複",
+ "unit": {
+ "days_other": "天",
+ "label": "單位",
+ "months_other": "個月",
+ "weeks_other": "週",
+ "years_other": "年"
+ }
}
},
"backlog": {