1233 lines
31 KiB
JSON
1233 lines
31 KiB
JSON
{
|
|
"version": "5",
|
|
"dialect": "pg",
|
|
"id": "d2d24b52-413e-4ad0-9d94-b7fff098a812",
|
|
"prevId": "96331efe-f7dd-4d0f-8f65-e5f706cc2083",
|
|
"tables": {
|
|
"board": {
|
|
"name": "board",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "bigserial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"publicId": {
|
|
"name": "publicId",
|
|
"type": "varchar(12)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"createdBy": {
|
|
"name": "createdBy",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"updatedAt": {
|
|
"name": "updatedAt",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"deletedAt": {
|
|
"name": "deletedAt",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"deletedBy": {
|
|
"name": "deletedBy",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"importId": {
|
|
"name": "importId",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"workspaceId": {
|
|
"name": "workspaceId",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"board_createdBy_user_id_fk": {
|
|
"name": "board_createdBy_user_id_fk",
|
|
"tableFrom": "board",
|
|
"tableTo": "user",
|
|
"columnsFrom": [
|
|
"createdBy"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"board_deletedBy_user_id_fk": {
|
|
"name": "board_deletedBy_user_id_fk",
|
|
"tableFrom": "board",
|
|
"tableTo": "user",
|
|
"columnsFrom": [
|
|
"deletedBy"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"board_importId_import_id_fk": {
|
|
"name": "board_importId_import_id_fk",
|
|
"tableFrom": "board",
|
|
"tableTo": "import",
|
|
"columnsFrom": [
|
|
"importId"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"board_workspaceId_workspace_id_fk": {
|
|
"name": "board_workspaceId_workspace_id_fk",
|
|
"tableFrom": "board",
|
|
"tableTo": "workspace",
|
|
"columnsFrom": [
|
|
"workspaceId"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {
|
|
"board_publicId_unique": {
|
|
"name": "board_publicId_unique",
|
|
"nullsNotDistinct": false,
|
|
"columns": [
|
|
"publicId"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"card_activity": {
|
|
"name": "card_activity",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "bigserial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"publicId": {
|
|
"name": "publicId",
|
|
"type": "varchar(12)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"type": {
|
|
"name": "type",
|
|
"type": "card_activity_type",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"cardId": {
|
|
"name": "cardId",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"fromIndex": {
|
|
"name": "fromIndex",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"toIndex": {
|
|
"name": "toIndex",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"fromListId": {
|
|
"name": "fromListId",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"toListId": {
|
|
"name": "toListId",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"labelId": {
|
|
"name": "labelId",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"workspaceMemberId": {
|
|
"name": "workspaceMemberId",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"fromTitle": {
|
|
"name": "fromTitle",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"toTitle": {
|
|
"name": "toTitle",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"fromDescription": {
|
|
"name": "fromDescription",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"toDescription": {
|
|
"name": "toDescription",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"createdBy": {
|
|
"name": "createdBy",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"card_activity_cardId_card_id_fk": {
|
|
"name": "card_activity_cardId_card_id_fk",
|
|
"tableFrom": "card_activity",
|
|
"tableTo": "card",
|
|
"columnsFrom": [
|
|
"cardId"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"card_activity_toListId_list_id_fk": {
|
|
"name": "card_activity_toListId_list_id_fk",
|
|
"tableFrom": "card_activity",
|
|
"tableTo": "list",
|
|
"columnsFrom": [
|
|
"toListId"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"card_activity_labelId_label_id_fk": {
|
|
"name": "card_activity_labelId_label_id_fk",
|
|
"tableFrom": "card_activity",
|
|
"tableTo": "label",
|
|
"columnsFrom": [
|
|
"labelId"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"card_activity_workspaceMemberId_workspace_members_id_fk": {
|
|
"name": "card_activity_workspaceMemberId_workspace_members_id_fk",
|
|
"tableFrom": "card_activity",
|
|
"tableTo": "workspace_members",
|
|
"columnsFrom": [
|
|
"workspaceMemberId"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"card_activity_createdBy_user_id_fk": {
|
|
"name": "card_activity_createdBy_user_id_fk",
|
|
"tableFrom": "card_activity",
|
|
"tableTo": "user",
|
|
"columnsFrom": [
|
|
"createdBy"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {
|
|
"card_activity_publicId_unique": {
|
|
"name": "card_activity_publicId_unique",
|
|
"nullsNotDistinct": false,
|
|
"columns": [
|
|
"publicId"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"_card_workspace_members": {
|
|
"name": "_card_workspace_members",
|
|
"schema": "",
|
|
"columns": {
|
|
"cardId": {
|
|
"name": "cardId",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"workspaceMemberId": {
|
|
"name": "workspaceMemberId",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"_card_workspace_members_cardId_card_id_fk": {
|
|
"name": "_card_workspace_members_cardId_card_id_fk",
|
|
"tableFrom": "_card_workspace_members",
|
|
"tableTo": "card",
|
|
"columnsFrom": [
|
|
"cardId"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"_card_workspace_members_workspaceMemberId_workspace_members_id_fk": {
|
|
"name": "_card_workspace_members_workspaceMemberId_workspace_members_id_fk",
|
|
"tableFrom": "_card_workspace_members",
|
|
"tableTo": "workspace_members",
|
|
"columnsFrom": [
|
|
"workspaceMemberId"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {
|
|
"_card_workspace_members_cardId_workspaceMemberId": {
|
|
"name": "_card_workspace_members_cardId_workspaceMemberId",
|
|
"columns": [
|
|
"cardId",
|
|
"workspaceMemberId"
|
|
]
|
|
}
|
|
},
|
|
"uniqueConstraints": {}
|
|
},
|
|
"card": {
|
|
"name": "card",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "bigserial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"publicId": {
|
|
"name": "publicId",
|
|
"type": "varchar(12)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"title": {
|
|
"name": "title",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"description": {
|
|
"name": "description",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"index": {
|
|
"name": "index",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"createdBy": {
|
|
"name": "createdBy",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"updatedAt": {
|
|
"name": "updatedAt",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"deletedAt": {
|
|
"name": "deletedAt",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"deletedBy": {
|
|
"name": "deletedBy",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"listId": {
|
|
"name": "listId",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"importId": {
|
|
"name": "importId",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"card_createdBy_user_id_fk": {
|
|
"name": "card_createdBy_user_id_fk",
|
|
"tableFrom": "card",
|
|
"tableTo": "user",
|
|
"columnsFrom": [
|
|
"createdBy"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"card_deletedBy_user_id_fk": {
|
|
"name": "card_deletedBy_user_id_fk",
|
|
"tableFrom": "card",
|
|
"tableTo": "user",
|
|
"columnsFrom": [
|
|
"deletedBy"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"card_listId_list_id_fk": {
|
|
"name": "card_listId_list_id_fk",
|
|
"tableFrom": "card",
|
|
"tableTo": "list",
|
|
"columnsFrom": [
|
|
"listId"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"card_importId_import_id_fk": {
|
|
"name": "card_importId_import_id_fk",
|
|
"tableFrom": "card",
|
|
"tableTo": "import",
|
|
"columnsFrom": [
|
|
"importId"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {
|
|
"card_publicId_unique": {
|
|
"name": "card_publicId_unique",
|
|
"nullsNotDistinct": false,
|
|
"columns": [
|
|
"publicId"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"_card_labels": {
|
|
"name": "_card_labels",
|
|
"schema": "",
|
|
"columns": {
|
|
"cardId": {
|
|
"name": "cardId",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"labelId": {
|
|
"name": "labelId",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"_card_labels_cardId_card_id_fk": {
|
|
"name": "_card_labels_cardId_card_id_fk",
|
|
"tableFrom": "_card_labels",
|
|
"tableTo": "card",
|
|
"columnsFrom": [
|
|
"cardId"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"_card_labels_labelId_label_id_fk": {
|
|
"name": "_card_labels_labelId_label_id_fk",
|
|
"tableFrom": "_card_labels",
|
|
"tableTo": "label",
|
|
"columnsFrom": [
|
|
"labelId"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {
|
|
"_card_labels_cardId_labelId": {
|
|
"name": "_card_labels_cardId_labelId",
|
|
"columns": [
|
|
"cardId",
|
|
"labelId"
|
|
]
|
|
}
|
|
},
|
|
"uniqueConstraints": {}
|
|
},
|
|
"import": {
|
|
"name": "import",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "bigserial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"publicId": {
|
|
"name": "publicId",
|
|
"type": "varchar(12)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"source": {
|
|
"name": "source",
|
|
"type": "source",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"status": {
|
|
"name": "status",
|
|
"type": "status",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"createdBy": {
|
|
"name": "createdBy",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"import_createdBy_user_id_fk": {
|
|
"name": "import_createdBy_user_id_fk",
|
|
"tableFrom": "import",
|
|
"tableTo": "user",
|
|
"columnsFrom": [
|
|
"createdBy"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {
|
|
"import_publicId_unique": {
|
|
"name": "import_publicId_unique",
|
|
"nullsNotDistinct": false,
|
|
"columns": [
|
|
"publicId"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"label": {
|
|
"name": "label",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "bigserial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"publicId": {
|
|
"name": "publicId",
|
|
"type": "varchar(12)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"colourCode": {
|
|
"name": "colourCode",
|
|
"type": "varchar(12)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"createdBy": {
|
|
"name": "createdBy",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"updatedAt": {
|
|
"name": "updatedAt",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"boardId": {
|
|
"name": "boardId",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"importId": {
|
|
"name": "importId",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"label_createdBy_user_id_fk": {
|
|
"name": "label_createdBy_user_id_fk",
|
|
"tableFrom": "label",
|
|
"tableTo": "user",
|
|
"columnsFrom": [
|
|
"createdBy"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"label_boardId_board_id_fk": {
|
|
"name": "label_boardId_board_id_fk",
|
|
"tableFrom": "label",
|
|
"tableTo": "board",
|
|
"columnsFrom": [
|
|
"boardId"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"label_importId_import_id_fk": {
|
|
"name": "label_importId_import_id_fk",
|
|
"tableFrom": "label",
|
|
"tableTo": "import",
|
|
"columnsFrom": [
|
|
"importId"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {
|
|
"label_publicId_unique": {
|
|
"name": "label_publicId_unique",
|
|
"nullsNotDistinct": false,
|
|
"columns": [
|
|
"publicId"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"list": {
|
|
"name": "list",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "bigserial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"publicId": {
|
|
"name": "publicId",
|
|
"type": "varchar(12)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"index": {
|
|
"name": "index",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"createdBy": {
|
|
"name": "createdBy",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"updatedAt": {
|
|
"name": "updatedAt",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"deletedAt": {
|
|
"name": "deletedAt",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"deletedBy": {
|
|
"name": "deletedBy",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"boardId": {
|
|
"name": "boardId",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"importId": {
|
|
"name": "importId",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"list_createdBy_user_id_fk": {
|
|
"name": "list_createdBy_user_id_fk",
|
|
"tableFrom": "list",
|
|
"tableTo": "user",
|
|
"columnsFrom": [
|
|
"createdBy"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"list_deletedBy_user_id_fk": {
|
|
"name": "list_deletedBy_user_id_fk",
|
|
"tableFrom": "list",
|
|
"tableTo": "user",
|
|
"columnsFrom": [
|
|
"deletedBy"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"list_boardId_board_id_fk": {
|
|
"name": "list_boardId_board_id_fk",
|
|
"tableFrom": "list",
|
|
"tableTo": "board",
|
|
"columnsFrom": [
|
|
"boardId"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"list_importId_import_id_fk": {
|
|
"name": "list_importId_import_id_fk",
|
|
"tableFrom": "list",
|
|
"tableTo": "import",
|
|
"columnsFrom": [
|
|
"importId"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {
|
|
"list_publicId_unique": {
|
|
"name": "list_publicId_unique",
|
|
"nullsNotDistinct": false,
|
|
"columns": [
|
|
"publicId"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"user": {
|
|
"name": "user",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"email": {
|
|
"name": "email",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"emailVerified": {
|
|
"name": "emailVerified",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"image": {
|
|
"name": "image",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {
|
|
"user_email_unique": {
|
|
"name": "user_email_unique",
|
|
"nullsNotDistinct": false,
|
|
"columns": [
|
|
"email"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"workspace_members": {
|
|
"name": "workspace_members",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "bigserial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"publicId": {
|
|
"name": "publicId",
|
|
"type": "varchar(12)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"userId": {
|
|
"name": "userId",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"workspaceId": {
|
|
"name": "workspaceId",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"createdBy": {
|
|
"name": "createdBy",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"updatedAt": {
|
|
"name": "updatedAt",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"deletedAt": {
|
|
"name": "deletedAt",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"deletedBy": {
|
|
"name": "deletedBy",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"role": {
|
|
"name": "role",
|
|
"type": "role",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"status": {
|
|
"name": "status",
|
|
"type": "member_status",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'invited'"
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"workspace_members_userId_user_id_fk": {
|
|
"name": "workspace_members_userId_user_id_fk",
|
|
"tableFrom": "workspace_members",
|
|
"tableTo": "user",
|
|
"columnsFrom": [
|
|
"userId"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"workspace_members_workspaceId_workspace_id_fk": {
|
|
"name": "workspace_members_workspaceId_workspace_id_fk",
|
|
"tableFrom": "workspace_members",
|
|
"tableTo": "workspace",
|
|
"columnsFrom": [
|
|
"workspaceId"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"workspace_members_deletedBy_user_id_fk": {
|
|
"name": "workspace_members_deletedBy_user_id_fk",
|
|
"tableFrom": "workspace_members",
|
|
"tableTo": "user",
|
|
"columnsFrom": [
|
|
"deletedBy"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {
|
|
"workspace_members_publicId_unique": {
|
|
"name": "workspace_members_publicId_unique",
|
|
"nullsNotDistinct": false,
|
|
"columns": [
|
|
"publicId"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"workspace": {
|
|
"name": "workspace",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "bigserial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"publicId": {
|
|
"name": "publicId",
|
|
"type": "varchar(12)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"slug": {
|
|
"name": "slug",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"createdBy": {
|
|
"name": "createdBy",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"createdAt": {
|
|
"name": "createdAt",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"updatedAt": {
|
|
"name": "updatedAt",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"deletedAt": {
|
|
"name": "deletedAt",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"deletedBy": {
|
|
"name": "deletedBy",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"workspace_createdBy_user_id_fk": {
|
|
"name": "workspace_createdBy_user_id_fk",
|
|
"tableFrom": "workspace",
|
|
"tableTo": "user",
|
|
"columnsFrom": [
|
|
"createdBy"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"workspace_deletedBy_user_id_fk": {
|
|
"name": "workspace_deletedBy_user_id_fk",
|
|
"tableFrom": "workspace",
|
|
"tableTo": "user",
|
|
"columnsFrom": [
|
|
"deletedBy"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {
|
|
"workspace_publicId_unique": {
|
|
"name": "workspace_publicId_unique",
|
|
"nullsNotDistinct": false,
|
|
"columns": [
|
|
"publicId"
|
|
]
|
|
},
|
|
"workspace_slug_unique": {
|
|
"name": "workspace_slug_unique",
|
|
"nullsNotDistinct": false,
|
|
"columns": [
|
|
"slug"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"enums": {
|
|
"card_activity_type": {
|
|
"name": "card_activity_type",
|
|
"values": {
|
|
"card.created": "card.created",
|
|
"card.updated.title": "card.updated.title",
|
|
"card.updated.description": "card.updated.description",
|
|
"card.updated.index": "card.updated.index",
|
|
"card.updated.list": "card.updated.list",
|
|
"card.updated.label.added": "card.updated.label.added",
|
|
"card.updated.label.removed": "card.updated.label.removed",
|
|
"card.updated.member.added": "card.updated.member.added",
|
|
"card.updated.member.removed": "card.updated.member.removed",
|
|
"card.archived": "card.archived"
|
|
}
|
|
},
|
|
"source": {
|
|
"name": "source",
|
|
"values": {
|
|
"trello": "trello"
|
|
}
|
|
},
|
|
"status": {
|
|
"name": "status",
|
|
"values": {
|
|
"started": "started",
|
|
"success": "success",
|
|
"failed": "failed"
|
|
}
|
|
},
|
|
"role": {
|
|
"name": "role",
|
|
"values": {
|
|
"admin": "admin",
|
|
"member": "member",
|
|
"guest": "guest"
|
|
}
|
|
},
|
|
"member_status": {
|
|
"name": "member_status",
|
|
"values": {
|
|
"invited": "invited",
|
|
"active": "active",
|
|
"removed": "removed"
|
|
}
|
|
}
|
|
},
|
|
"schemas": {},
|
|
"_meta": {
|
|
"schemas": {},
|
|
"tables": {},
|
|
"columns": {}
|
|
}
|
|
} |