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.

14.3 KB
Raw Blame
{
	"id": "1ed2e748-68b8-4d66-9d11-c06fba31a8dd",
	"prevId": "00000000-0000-0000-0000-000000000000",
	"version": "7",
	"dialect": "postgresql",
	"tables": {
		"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()"
				},
				"user_email": {
					"name": "user_email",
					"type": "text",
					"primaryKey": false,
					"notNull": true
				},
				"content": {
					"name": "content",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				}
			},
			"indexes": {},
			"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_email_user_email_fk": {
					"name": "activity_user_email_user_email_fk",
					"tableFrom": "activity",
					"tableTo": "user",
					"columnsFrom": ["user_email"],
					"columnsTo": ["email"],
					"onDelete": "cascade",
					"onUpdate": "cascade"
				}
			},
			"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()"
				},
				"task_id": {
					"name": "task_id",
					"type": "text",
					"primaryKey": false,
					"notNull": true
				}
			},
			"indexes": {},
			"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"
				}
			},
			"compositePrimaryKeys": {},
			"uniqueConstraints": {},
			"policies": {},
			"checkConstraints": {},
			"isRLSEnabled": false
		},
		"public.notification": {
			"name": "notification",
			"schema": "",
			"columns": {
				"id": {
					"name": "id",
					"type": "text",
					"primaryKey": true,
					"notNull": true
				},
				"user_email": {
					"name": "user_email",
					"type": "text",
					"primaryKey": false,
					"notNull": true
				},
				"title": {
					"name": "title",
					"type": "text",
					"primaryKey": false,
					"notNull": true
				},
				"content": {
					"name": "content",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"type": {
					"name": "type",
					"type": "text",
					"primaryKey": false,
					"notNull": true,
					"default": "'info'"
				},
				"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",
					"primaryKey": false,
					"notNull": true,
					"default": "now()"
				}
			},
			"indexes": {},
			"foreignKeys": {
				"notification_user_email_user_email_fk": {
					"name": "notification_user_email_user_email_fk",
					"tableFrom": "notification",
					"tableTo": "user",
					"columnsFrom": ["user_email"],
					"columnsTo": ["email"],
					"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
				}
			},
			"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": {},
			"policies": {},
			"checkConstraints": {},
			"isRLSEnabled": false
		},
		"public.session": {
			"name": "session",
			"schema": "",
			"columns": {
				"id": {
					"name": "id",
					"type": "text",
					"primaryKey": true,
					"notNull": true
				},
				"user_id": {
					"name": "user_id",
					"type": "text",
					"primaryKey": false,
					"notNull": true
				},
				"expires_at": {
					"name": "expires_at",
					"type": "timestamp",
					"primaryKey": false,
					"notNull": true
				}
			},
			"indexes": {},
			"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": "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_email": {
					"name": "assignee_email",
					"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'"
				},
				"priority": {
					"name": "priority",
					"type": "text",
					"primaryKey": false,
					"notNull": false,
					"default": "'low'"
				},
				"due_date": {
					"name": "due_date",
					"type": "timestamp",
					"primaryKey": false,
					"notNull": false
				},
				"created_at": {
					"name": "created_at",
					"type": "timestamp",
					"primaryKey": false,
					"notNull": true,
					"default": "now()"
				}
			},
			"indexes": {},
			"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_email_user_email_fk": {
					"name": "task_assignee_email_user_email_fk",
					"tableFrom": "task",
					"tableTo": "user",
					"columnsFrom": ["assignee_email"],
					"columnsTo": ["email"],
					"onDelete": "cascade",
					"onUpdate": "cascade"
				}
			},
			"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_email": {
					"name": "user_email",
					"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_email_user_email_fk": {
					"name": "time_entry_user_email_user_email_fk",
					"tableFrom": "time_entry",
					"tableTo": "user",
					"columnsFrom": ["user_email"],
					"columnsTo": ["email"],
					"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
				},
				"password": {
					"name": "password",
					"type": "text",
					"primaryKey": false,
					"notNull": true
				},
				"email": {
					"name": "email",
					"type": "text",
					"primaryKey": false,
					"notNull": true
				},
				"created_at": {
					"name": "created_at",
					"type": "timestamp",
					"primaryKey": false,
					"notNull": true,
					"default": "now()"
				}
			},
			"indexes": {},
			"foreignKeys": {},
			"compositePrimaryKeys": {},
			"uniqueConstraints": {
				"user_email_unique": {
					"name": "user_email_unique",
					"nullsNotDistinct": false,
					"columns": ["email"]
				}
			},
			"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
				},
				"description": {
					"name": "description",
					"type": "text",
					"primaryKey": false,
					"notNull": false
				},
				"owner_email": {
					"name": "owner_email",
					"type": "text",
					"primaryKey": false,
					"notNull": true
				},
				"created_at": {
					"name": "created_at",
					"type": "timestamp",
					"primaryKey": false,
					"notNull": true,
					"default": "now()"
				}
			},
			"indexes": {},
			"foreignKeys": {
				"workspace_owner_email_user_email_fk": {
					"name": "workspace_owner_email_user_email_fk",
					"tableFrom": "workspace",
					"tableTo": "user",
					"columnsFrom": ["owner_email"],
					"columnsTo": ["email"],
					"onDelete": "cascade",
					"onUpdate": "cascade"
				}
			},
			"compositePrimaryKeys": {},
			"uniqueConstraints": {},
			"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": false
				},
				"user_email": {
					"name": "user_email",
					"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,
					"default": "now()"
				},
				"status": {
					"name": "status",
					"type": "text",
					"primaryKey": false,
					"notNull": true,
					"default": "'pending'"
				}
			},
			"indexes": {},
			"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": "cascade"
				}
			},
			"compositePrimaryKeys": {},
			"uniqueConstraints": {},
			"policies": {},
			"checkConstraints": {},
			"isRLSEnabled": false
		}
	},
	"enums": {},
	"schemas": {},
	"sequences": {},
	"roles": {},
	"policies": {},
	"views": {},
	"_meta": {
		"columns": {},
		"schemas": {},
		"tables": {}
	}
}