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 'upstream/main' into feat/add-user-notifications-integrations

Tin9d722e501e15
diff --cc apps/api/drizzle/0025_early_owl.sql
index d7a1d418b,000000000..d7a1d418b
mode 100644,000000..100644
--- a/apps/api/drizzle/0025_early_owl.sql
+++ b/apps/api/drizzle/0025_early_owl.sql
diff --cc apps/api/drizzle/0026_encrypt_notification_preference_secrets.sql
index e86260620,000000000..e86260620
mode 100644,000000..100644
--- a/apps/api/drizzle/0026_encrypt_notification_preference_secrets.sql
+++ b/apps/api/drizzle/0026_encrypt_notification_preference_secrets.sql
diff --cc apps/api/drizzle/meta/0026_snapshot.json
index 000000000,000000000..1520e5a64
new file mode 100644
--- /dev/null
+++ b/apps/api/drizzle/meta/0026_snapshot.json
@@@ -1,0 -1,0 +1,3413 @@@
++{
++ "id": "0e05bf62-b50b-4a4e-9d73-3b4cdb696930",
++ "prevId": "ee695959-0cad-4f20-9219-7bcefd51ff6d",
++ "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()"
++ },
++ "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()"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "now()"
++ },
++ "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": {}
++ }
++ },
++ "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": "cascade",
++ "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()"
++ }
++ },
++ "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": {}
++ }
++ },
++ "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.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()"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "now()"
++ }
++ },
++ "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()"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "now()"
++ }
++ },
++ "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.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()"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "now()"
++ },
++ "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": true
++ },
++ "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()"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "now()"
++ }
++ },
++ "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": {}
++ }
++ },
++ "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_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()"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "now()"
++ }
++ },
++ "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()"
++ },
++ "inviter_id": {
++ "name": "inviter_id",
++ "type": "text",
++ "primaryKey": false,
++ "notNull": true
++ }
++ },
++ "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": {}
++ }
++ },
++ "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.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()"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "now()"
++ },
++ "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_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.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()"
++ }
++ },
++ "indexes": {},
++ "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.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()"
++ },
++ "is_public": {
++ "name": "is_public",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": false,
++ "default": false
++ },
++ "archived_at": {
++ "name": "archived_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": false
++ }
++ },
++ "indexes": {},
++ "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()"
++ },
++ "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
++ }
++ },
++ "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.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()"
++ }
++ },
++ "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": {
++ "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": false,
++ "default": "'low'"
++ },
++ "start_date": {
++ "name": "start_date",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "due_date": {
++ "name": "due_date",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": false
++ },
++ "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": {
++ "task_projectId_idx": {
++ "name": "task_projectId_idx",
++ "columns": [
++ {
++ "expression": "project_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": "cascade",
++ "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()"
++ }
++ },
++ "indexes": {},
++ "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": "cascade",
++ "onUpdate": "cascade"
++ }
++ },
++ "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()"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "now()"
++ },
++ "is_anonymous": {
++ "name": "is_anonymous",
++ "type": "boolean",
++ "primaryKey": false,
++ "notNull": false,
++ "default": false
++ }
++ },
++ "indexes": {},
++ "foreignKeys": {},
++ "compositePrimaryKeys": {},
++ "uniqueConstraints": {
++ "user_email_unique": {
++ "name": "user_email_unique",
++ "nullsNotDistinct": false,
++ "columns": [
++ "email"
++ ]
++ }
++ },
++ "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
++ },
++ "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": {
++ "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()"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "now()"
++ }
++ },
++ "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": {}
++ }
++ },
++ "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()"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "now()"
++ }
++ },
++ "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()"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "now()"
++ }
++ },
++ "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()"
++ },
++ "updated_at": {
++ "name": "updated_at",
++ "type": "timestamp",
++ "primaryKey": false,
++ "notNull": true,
++ "default": "now()"
++ }
++ },
++ "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": {}
++ }
++ },
++ "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_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 fee214e27,f6f40341e..efb7e16dc
--- a/apps/api/drizzle/meta/_journal.json
+++ b/apps/api/drizzle/meta/_journal.json
@@@ -1,181 -1,181 +1,195 @@@
{
-- "version": "7",
-- "dialect": "postgresql",
-- "entries": [
-- {
-- "idx": 0,
-- "version": "7",
-- "when": 1750083630484,
-- "tag": "0000_confused_pixie",
-- "breakpoints": true
-- },
-- {
-- "idx": 1,
-- "version": "7",
-- "when": 1750504871903,
-- "tag": "0001_natural_robin_chapel",
-- "breakpoints": true
-- },
-- {
-- "idx": 2,
-- "version": "7",
-- "when": 1752666410349,
-- "tag": "0002_easy_miek",
-- "breakpoints": true
-- },
-- {
-- "idx": 3,
-- "version": "7",
-- "when": 1755016234993,
-- "tag": "0003_round_human_fly",
-- "breakpoints": true
-- },
-- {
-- "idx": 4,
-- "version": "7",
-- "when": 1755720143109,
-- "tag": "0004_curved_stingray",
-- "breakpoints": true
-- },
-- {
-- "idx": 5,
-- "version": "7",
-- "when": 1759234332200,
-- "tag": "0005_jittery_monster_badoon",
-- "breakpoints": true
-- },
-- {
-- "idx": 6,
-- "version": "7",
-- "when": 1733703124000,
-- "tag": "0006_rename_active_workspace_to_organization",
-- "breakpoints": true
-- },
-- {
-- "idx": 7,
-- "version": "7",
-- "when": 1765390825431,
-- "tag": "0007_careful_moira_mactaggert",
-- "breakpoints": true
-- },
-- {
-- "idx": 8,
-- "version": "7",
-- "when": 1765392072530,
-- "tag": "0008_square_silvermane",
-- "breakpoints": true
-- },
-- {
-- "idx": 9,
-- "version": "7",
-- "when": 1766950050412,
-- "tag": "0009_harsh_blacklash",
-- "breakpoints": true
-- },
-- {
-- "idx": 10,
-- "version": "7",
-- "when": 1767037216750,
-- "tag": "0010_bouncy_taskmaster",
-- "breakpoints": true
-- },
-- {
-- "idx": 11,
-- "version": "7",
-- "when": 1767037714394,
-- "tag": "0011_flashy_masked_marvel",
-- "breakpoints": true
-- },
-- {
-- "idx": 12,
-- "version": "7",
-- "when": 1770375054098,
-- "tag": "0012_mixed_thor_girl",
-- "breakpoints": true
-- },
-- {
-- "idx": 13,
-- "version": "7",
-- "when": 1772660160328,
-- "tag": "0013_quiet_gladiator",
-- "breakpoints": true
-- },
-- {
-- "idx": 14,
-- "version": "7",
-- "when": 1773259300000,
-- "tag": "0014_private_assets",
-- "breakpoints": true
-- },
-- {
-- "idx": 15,
-- "version": "7",
-- "when": 1773947411304,
-- "tag": "0015_add_comment_and_archival",
-- "breakpoints": true
-- },
-- {
-- "idx": 16,
-- "version": "7",
-- "when": 1773952461673,
-- "tag": "0016_add_task_relation",
-- "breakpoints": true
-- },
-- {
-- "idx": 17,
-- "version": "7",
-- "when": 1774269662424,
-- "tag": "0017_white_omega_flight",
-- "breakpoints": true
-- },
-- {
-- "idx": 18,
-- "version": "7",
-- "when": 1774726270729,
-- "tag": "0018_motionless_luckman",
-- "breakpoints": true
-- },
-- {
-- "idx": 19,
-- "version": "7",
-- "when": 1774823200346,
-- "tag": "0019_sloppy_meteorite",
-- "breakpoints": true
-- },
-- {
-- "idx": 20,
-- "version": "7",
-- "when": 1774908000000,
-- "tag": "0020_gitea_dedup_guards",
-- "breakpoints": true
-- },
-- {
-- "idx": 21,
-- "version": "7",
-- "when": 1774942282393,
-- "tag": "0021_pretty_smiling_tiger",
-- "breakpoints": true
-- },
-- {
-- "idx": 22,
-- "version": "7",
-- "when": 1774944216644,
-- "tag": "0022_material_electro",
-- "breakpoints": true
-- },
-- {
-- "idx": 23,
-- "version": "7",
- "when": 1775156843372,
- "tag": "0023_early_owl",
- "when": 1775215568801,
- "tag": "0023_cold_omega_red",
-- "breakpoints": true
-- },
-- {
-- "idx": 24,
-- "version": "7",
- "when": 1775102400000,
- "tag": "0024_encrypt_notification_preference_secrets",
- "when": 1775215568802,
- "tag": "0024_device_code_timestamps",
-- "breakpoints": true
-- }
-- ]
++ "version": "7",
++ "dialect": "postgresql",
++ "entries": [
++ {
++ "idx": 0,
++ "version": "7",
++ "when": 1750083630484,
++ "tag": "0000_confused_pixie",
++ "breakpoints": true
++ },
++ {
++ "idx": 1,
++ "version": "7",
++ "when": 1750504871903,
++ "tag": "0001_natural_robin_chapel",
++ "breakpoints": true
++ },
++ {
++ "idx": 2,
++ "version": "7",
++ "when": 1752666410349,
++ "tag": "0002_easy_miek",
++ "breakpoints": true
++ },
++ {
++ "idx": 3,
++ "version": "7",
++ "when": 1755016234993,
++ "tag": "0003_round_human_fly",
++ "breakpoints": true
++ },
++ {
++ "idx": 4,
++ "version": "7",
++ "when": 1755720143109,
++ "tag": "0004_curved_stingray",
++ "breakpoints": true
++ },
++ {
++ "idx": 5,
++ "version": "7",
++ "when": 1759234332200,
++ "tag": "0005_jittery_monster_badoon",
++ "breakpoints": true
++ },
++ {
++ "idx": 6,
++ "version": "7",
++ "when": 1733703124000,
++ "tag": "0006_rename_active_workspace_to_organization",
++ "breakpoints": true
++ },
++ {
++ "idx": 7,
++ "version": "7",
++ "when": 1765390825431,
++ "tag": "0007_careful_moira_mactaggert",
++ "breakpoints": true
++ },
++ {
++ "idx": 8,
++ "version": "7",
++ "when": 1765392072530,
++ "tag": "0008_square_silvermane",
++ "breakpoints": true
++ },
++ {
++ "idx": 9,
++ "version": "7",
++ "when": 1766950050412,
++ "tag": "0009_harsh_blacklash",
++ "breakpoints": true
++ },
++ {
++ "idx": 10,
++ "version": "7",
++ "when": 1767037216750,
++ "tag": "0010_bouncy_taskmaster",
++ "breakpoints": true
++ },
++ {
++ "idx": 11,
++ "version": "7",
++ "when": 1767037714394,
++ "tag": "0011_flashy_masked_marvel",
++ "breakpoints": true
++ },
++ {
++ "idx": 12,
++ "version": "7",
++ "when": 1770375054098,
++ "tag": "0012_mixed_thor_girl",
++ "breakpoints": true
++ },
++ {
++ "idx": 13,
++ "version": "7",
++ "when": 1772660160328,
++ "tag": "0013_quiet_gladiator",
++ "breakpoints": true
++ },
++ {
++ "idx": 14,
++ "version": "7",
++ "when": 1773259300000,
++ "tag": "0014_private_assets",
++ "breakpoints": true
++ },
++ {
++ "idx": 15,
++ "version": "7",
++ "when": 1773947411304,
++ "tag": "0015_add_comment_and_archival",
++ "breakpoints": true
++ },
++ {
++ "idx": 16,
++ "version": "7",
++ "when": 1773952461673,
++ "tag": "0016_add_task_relation",
++ "breakpoints": true
++ },
++ {
++ "idx": 17,
++ "version": "7",
++ "when": 1774269662424,
++ "tag": "0017_white_omega_flight",
++ "breakpoints": true
++ },
++ {
++ "idx": 18,
++ "version": "7",
++ "when": 1774726270729,
++ "tag": "0018_motionless_luckman",
++ "breakpoints": true
++ },
++ {
++ "idx": 19,
++ "version": "7",
++ "when": 1774823200346,
++ "tag": "0019_sloppy_meteorite",
++ "breakpoints": true
++ },
++ {
++ "idx": 20,
++ "version": "7",
++ "when": 1774908000000,
++ "tag": "0020_gitea_dedup_guards",
++ "breakpoints": true
++ },
++ {
++ "idx": 21,
++ "version": "7",
++ "when": 1774942282393,
++ "tag": "0021_pretty_smiling_tiger",
++ "breakpoints": true
++ },
++ {
++ "idx": 22,
++ "version": "7",
++ "when": 1774944216644,
++ "tag": "0022_material_electro",
++ "breakpoints": true
++ },
++ {
++ "idx": 23,
++ "version": "7",
++ "when": 1775215568801,
++ "tag": "0023_cold_omega_red",
++ "breakpoints": true
++ },
++ {
++ "idx": 24,
++ "version": "7",
++ "when": 1775215568802,
++ "tag": "0024_device_code_timestamps",
++ "breakpoints": true
++ },
++ {
++ "idx": 25,
++ "version": "7",
++ "when": 1775156843372,
++ "tag": "0025_early_owl",
++ "breakpoints": true
++ },
++ {
++ "idx": 26,
++ "version": "7",
++ "when": 1775102400000,
++ "tag": "0026_encrypt_notification_preference_secrets",
++ "breakpoints": true
++ }
++ ]
}