Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 11s
Build & Deploy / 🧪 QA (push) Successful in 8m14s
Build & Deploy / 🏗️ Build (push) Successful in 13m1s
Build & Deploy / 🚀 Deploy (push) Successful in 28s
Build & Deploy / 🧪 Post-Deploy Verification (push) Failing after 2m24s
Build & Deploy / 🔔 Notify (push) Successful in 1s
3672 lines
99 KiB
JSON
3672 lines
99 KiB
JSON
{
|
|
"version": "7",
|
|
"dialect": "postgresql",
|
|
"tables": {
|
|
"public.users_sessions": {
|
|
"name": "users_sessions",
|
|
"schema": "",
|
|
"columns": {
|
|
"_order": {
|
|
"name": "_order",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"_parent_id": {
|
|
"name": "_parent_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"id": {
|
|
"name": "id",
|
|
"type": "varchar",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"expires_at": {
|
|
"name": "expires_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {
|
|
"users_sessions_order_idx": {
|
|
"name": "users_sessions_order_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "_order",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"users_sessions_parent_id_idx": {
|
|
"name": "users_sessions_parent_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "_parent_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"users_sessions_parent_id_fk": {
|
|
"name": "users_sessions_parent_id_fk",
|
|
"tableFrom": "users_sessions",
|
|
"tableTo": "users",
|
|
"columnsFrom": ["_parent_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.users": {
|
|
"name": "users",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"email": {
|
|
"name": "email",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"reset_password_token": {
|
|
"name": "reset_password_token",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"reset_password_expiration": {
|
|
"name": "reset_password_expiration",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"salt": {
|
|
"name": "salt",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"hash": {
|
|
"name": "hash",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"login_attempts": {
|
|
"name": "login_attempts",
|
|
"type": "numeric",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": 0
|
|
},
|
|
"lock_until": {
|
|
"name": "lock_until",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"users_updated_at_idx": {
|
|
"name": "users_updated_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "updated_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"users_created_at_idx": {
|
|
"name": "users_created_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "created_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"users_email_idx": {
|
|
"name": "users_email_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "email",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": true,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.media": {
|
|
"name": "media",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"alt": {
|
|
"name": "alt",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"prefix": {
|
|
"name": "prefix",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": "'mintel-me/media'"
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"url": {
|
|
"name": "url",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"thumbnail_u_r_l": {
|
|
"name": "thumbnail_u_r_l",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"filename": {
|
|
"name": "filename",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"mime_type": {
|
|
"name": "mime_type",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"filesize": {
|
|
"name": "filesize",
|
|
"type": "numeric",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"width": {
|
|
"name": "width",
|
|
"type": "numeric",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"height": {
|
|
"name": "height",
|
|
"type": "numeric",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"focal_x": {
|
|
"name": "focal_x",
|
|
"type": "numeric",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"focal_y": {
|
|
"name": "focal_y",
|
|
"type": "numeric",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sizes_thumbnail_url": {
|
|
"name": "sizes_thumbnail_url",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sizes_thumbnail_width": {
|
|
"name": "sizes_thumbnail_width",
|
|
"type": "numeric",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sizes_thumbnail_height": {
|
|
"name": "sizes_thumbnail_height",
|
|
"type": "numeric",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sizes_thumbnail_mime_type": {
|
|
"name": "sizes_thumbnail_mime_type",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sizes_thumbnail_filesize": {
|
|
"name": "sizes_thumbnail_filesize",
|
|
"type": "numeric",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sizes_thumbnail_filename": {
|
|
"name": "sizes_thumbnail_filename",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sizes_card_url": {
|
|
"name": "sizes_card_url",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sizes_card_width": {
|
|
"name": "sizes_card_width",
|
|
"type": "numeric",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sizes_card_height": {
|
|
"name": "sizes_card_height",
|
|
"type": "numeric",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sizes_card_mime_type": {
|
|
"name": "sizes_card_mime_type",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sizes_card_filesize": {
|
|
"name": "sizes_card_filesize",
|
|
"type": "numeric",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sizes_card_filename": {
|
|
"name": "sizes_card_filename",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sizes_tablet_url": {
|
|
"name": "sizes_tablet_url",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sizes_tablet_width": {
|
|
"name": "sizes_tablet_width",
|
|
"type": "numeric",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sizes_tablet_height": {
|
|
"name": "sizes_tablet_height",
|
|
"type": "numeric",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sizes_tablet_mime_type": {
|
|
"name": "sizes_tablet_mime_type",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sizes_tablet_filesize": {
|
|
"name": "sizes_tablet_filesize",
|
|
"type": "numeric",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sizes_tablet_filename": {
|
|
"name": "sizes_tablet_filename",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"media_updated_at_idx": {
|
|
"name": "media_updated_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "updated_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"media_created_at_idx": {
|
|
"name": "media_created_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "created_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"media_filename_idx": {
|
|
"name": "media_filename_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "filename",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": true,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"media_sizes_thumbnail_sizes_thumbnail_filename_idx": {
|
|
"name": "media_sizes_thumbnail_sizes_thumbnail_filename_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "sizes_thumbnail_filename",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"media_sizes_card_sizes_card_filename_idx": {
|
|
"name": "media_sizes_card_sizes_card_filename_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "sizes_card_filename",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"media_sizes_tablet_sizes_tablet_filename_idx": {
|
|
"name": "media_sizes_tablet_sizes_tablet_filename_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "sizes_tablet_filename",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.posts_tags": {
|
|
"name": "posts_tags",
|
|
"schema": "",
|
|
"columns": {
|
|
"_order": {
|
|
"name": "_order",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"_parent_id": {
|
|
"name": "_parent_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"id": {
|
|
"name": "id",
|
|
"type": "varchar",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"tag": {
|
|
"name": "tag",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"posts_tags_order_idx": {
|
|
"name": "posts_tags_order_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "_order",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"posts_tags_parent_id_idx": {
|
|
"name": "posts_tags_parent_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "_parent_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"posts_tags_parent_id_fk": {
|
|
"name": "posts_tags_parent_id_fk",
|
|
"tableFrom": "posts_tags",
|
|
"tableTo": "posts",
|
|
"columnsFrom": ["_parent_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.posts": {
|
|
"name": "posts",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"title": {
|
|
"name": "title",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"slug": {
|
|
"name": "slug",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"description": {
|
|
"name": "description",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"date": {
|
|
"name": "date",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"featured_image_id": {
|
|
"name": "featured_image_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"content": {
|
|
"name": "content",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"_status": {
|
|
"name": "_status",
|
|
"type": "enum_posts_status",
|
|
"typeSchema": "public",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": "'draft'"
|
|
}
|
|
},
|
|
"indexes": {
|
|
"posts_slug_idx": {
|
|
"name": "posts_slug_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "slug",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": true,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"posts_featured_image_idx": {
|
|
"name": "posts_featured_image_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "featured_image_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"posts_updated_at_idx": {
|
|
"name": "posts_updated_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "updated_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"posts_created_at_idx": {
|
|
"name": "posts_created_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "created_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"posts__status_idx": {
|
|
"name": "posts__status_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "_status",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"posts_featured_image_id_media_id_fk": {
|
|
"name": "posts_featured_image_id_media_id_fk",
|
|
"tableFrom": "posts",
|
|
"tableTo": "media",
|
|
"columnsFrom": ["featured_image_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "set null",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public._posts_v_version_tags": {
|
|
"name": "_posts_v_version_tags",
|
|
"schema": "",
|
|
"columns": {
|
|
"_order": {
|
|
"name": "_order",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"_parent_id": {
|
|
"name": "_parent_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"tag": {
|
|
"name": "tag",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"_uuid": {
|
|
"name": "_uuid",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"_posts_v_version_tags_order_idx": {
|
|
"name": "_posts_v_version_tags_order_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "_order",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"_posts_v_version_tags_parent_id_idx": {
|
|
"name": "_posts_v_version_tags_parent_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "_parent_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"_posts_v_version_tags_parent_id_fk": {
|
|
"name": "_posts_v_version_tags_parent_id_fk",
|
|
"tableFrom": "_posts_v_version_tags",
|
|
"tableTo": "_posts_v",
|
|
"columnsFrom": ["_parent_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public._posts_v": {
|
|
"name": "_posts_v",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"parent_id": {
|
|
"name": "parent_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"version_title": {
|
|
"name": "version_title",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"version_slug": {
|
|
"name": "version_slug",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"version_description": {
|
|
"name": "version_description",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"version_date": {
|
|
"name": "version_date",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"version_featured_image_id": {
|
|
"name": "version_featured_image_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"version_content": {
|
|
"name": "version_content",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"version_updated_at": {
|
|
"name": "version_updated_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"version_created_at": {
|
|
"name": "version_created_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"version__status": {
|
|
"name": "version__status",
|
|
"type": "enum__posts_v_version_status",
|
|
"typeSchema": "public",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": "'draft'"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"latest": {
|
|
"name": "latest",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"_posts_v_parent_idx": {
|
|
"name": "_posts_v_parent_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "parent_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"_posts_v_version_version_slug_idx": {
|
|
"name": "_posts_v_version_version_slug_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "version_slug",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"_posts_v_version_version_featured_image_idx": {
|
|
"name": "_posts_v_version_version_featured_image_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "version_featured_image_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"_posts_v_version_version_updated_at_idx": {
|
|
"name": "_posts_v_version_version_updated_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "version_updated_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"_posts_v_version_version_created_at_idx": {
|
|
"name": "_posts_v_version_version_created_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "version_created_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"_posts_v_version_version__status_idx": {
|
|
"name": "_posts_v_version_version__status_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "version__status",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"_posts_v_created_at_idx": {
|
|
"name": "_posts_v_created_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "created_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"_posts_v_updated_at_idx": {
|
|
"name": "_posts_v_updated_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "updated_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"_posts_v_latest_idx": {
|
|
"name": "_posts_v_latest_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "latest",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"_posts_v_parent_id_posts_id_fk": {
|
|
"name": "_posts_v_parent_id_posts_id_fk",
|
|
"tableFrom": "_posts_v",
|
|
"tableTo": "posts",
|
|
"columnsFrom": ["parent_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "set null",
|
|
"onUpdate": "no action"
|
|
},
|
|
"_posts_v_version_featured_image_id_media_id_fk": {
|
|
"name": "_posts_v_version_featured_image_id_media_id_fk",
|
|
"tableFrom": "_posts_v",
|
|
"tableTo": "media",
|
|
"columnsFrom": ["version_featured_image_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "set null",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.inquiries": {
|
|
"name": "inquiries",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"processed": {
|
|
"name": "processed",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"email": {
|
|
"name": "email",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"company_name": {
|
|
"name": "company_name",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"project_type": {
|
|
"name": "project_type",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"message": {
|
|
"name": "message",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"is_free_text": {
|
|
"name": "is_free_text",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
},
|
|
"config": {
|
|
"name": "config",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
}
|
|
},
|
|
"indexes": {
|
|
"inquiries_updated_at_idx": {
|
|
"name": "inquiries_updated_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "updated_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"inquiries_created_at_idx": {
|
|
"name": "inquiries_created_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "created_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.redirects": {
|
|
"name": "redirects",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"from": {
|
|
"name": "from",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"to": {
|
|
"name": "to",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
}
|
|
},
|
|
"indexes": {
|
|
"redirects_from_idx": {
|
|
"name": "redirects_from_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "from",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": true,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"redirects_updated_at_idx": {
|
|
"name": "redirects_updated_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "updated_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"redirects_created_at_idx": {
|
|
"name": "redirects_created_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "created_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.context_files": {
|
|
"name": "context_files",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"filename": {
|
|
"name": "filename",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"content": {
|
|
"name": "content",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
}
|
|
},
|
|
"indexes": {
|
|
"context_files_filename_idx": {
|
|
"name": "context_files_filename_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "filename",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": true,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"context_files_updated_at_idx": {
|
|
"name": "context_files_updated_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "updated_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"context_files_created_at_idx": {
|
|
"name": "context_files_created_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "created_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.crm_accounts": {
|
|
"name": "crm_accounts",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"website": {
|
|
"name": "website",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"status": {
|
|
"name": "status",
|
|
"type": "enum_crm_accounts_status",
|
|
"typeSchema": "public",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": "'lead'"
|
|
},
|
|
"lead_temperature": {
|
|
"name": "lead_temperature",
|
|
"type": "enum_crm_accounts_lead_temperature",
|
|
"typeSchema": "public",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"assigned_to_id": {
|
|
"name": "assigned_to_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
}
|
|
},
|
|
"indexes": {
|
|
"crm_accounts_assigned_to_idx": {
|
|
"name": "crm_accounts_assigned_to_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "assigned_to_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"crm_accounts_updated_at_idx": {
|
|
"name": "crm_accounts_updated_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "updated_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"crm_accounts_created_at_idx": {
|
|
"name": "crm_accounts_created_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "created_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"crm_accounts_assigned_to_id_users_id_fk": {
|
|
"name": "crm_accounts_assigned_to_id_users_id_fk",
|
|
"tableFrom": "crm_accounts",
|
|
"tableTo": "users",
|
|
"columnsFrom": ["assigned_to_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "set null",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.crm_accounts_rels": {
|
|
"name": "crm_accounts_rels",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"order": {
|
|
"name": "order",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"parent_id": {
|
|
"name": "parent_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"path": {
|
|
"name": "path",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"media_id": {
|
|
"name": "media_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"crm_accounts_rels_order_idx": {
|
|
"name": "crm_accounts_rels_order_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "order",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"crm_accounts_rels_parent_idx": {
|
|
"name": "crm_accounts_rels_parent_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "parent_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"crm_accounts_rels_path_idx": {
|
|
"name": "crm_accounts_rels_path_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "path",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"crm_accounts_rels_media_id_idx": {
|
|
"name": "crm_accounts_rels_media_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "media_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"crm_accounts_rels_parent_fk": {
|
|
"name": "crm_accounts_rels_parent_fk",
|
|
"tableFrom": "crm_accounts_rels",
|
|
"tableTo": "crm_accounts",
|
|
"columnsFrom": ["parent_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"crm_accounts_rels_media_fk": {
|
|
"name": "crm_accounts_rels_media_fk",
|
|
"tableFrom": "crm_accounts_rels",
|
|
"tableTo": "media",
|
|
"columnsFrom": ["media_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.crm_contacts": {
|
|
"name": "crm_contacts",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"full_name": {
|
|
"name": "full_name",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"first_name": {
|
|
"name": "first_name",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"last_name": {
|
|
"name": "last_name",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"email": {
|
|
"name": "email",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"phone": {
|
|
"name": "phone",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"linked_in": {
|
|
"name": "linked_in",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"role": {
|
|
"name": "role",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"account_id": {
|
|
"name": "account_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
}
|
|
},
|
|
"indexes": {
|
|
"crm_contacts_email_idx": {
|
|
"name": "crm_contacts_email_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "email",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": true,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"crm_contacts_account_idx": {
|
|
"name": "crm_contacts_account_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "account_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"crm_contacts_updated_at_idx": {
|
|
"name": "crm_contacts_updated_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "updated_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"crm_contacts_created_at_idx": {
|
|
"name": "crm_contacts_created_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "created_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"crm_contacts_account_id_crm_accounts_id_fk": {
|
|
"name": "crm_contacts_account_id_crm_accounts_id_fk",
|
|
"tableFrom": "crm_contacts",
|
|
"tableTo": "crm_accounts",
|
|
"columnsFrom": ["account_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "set null",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.crm_topics": {
|
|
"name": "crm_topics",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"title": {
|
|
"name": "title",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"account_id": {
|
|
"name": "account_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"status": {
|
|
"name": "status",
|
|
"type": "enum_crm_topics_status",
|
|
"typeSchema": "public",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'active'"
|
|
},
|
|
"stage": {
|
|
"name": "stage",
|
|
"type": "enum_crm_topics_stage",
|
|
"typeSchema": "public",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
}
|
|
},
|
|
"indexes": {
|
|
"crm_topics_account_idx": {
|
|
"name": "crm_topics_account_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "account_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"crm_topics_updated_at_idx": {
|
|
"name": "crm_topics_updated_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "updated_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"crm_topics_created_at_idx": {
|
|
"name": "crm_topics_created_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "created_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"crm_topics_account_id_crm_accounts_id_fk": {
|
|
"name": "crm_topics_account_id_crm_accounts_id_fk",
|
|
"tableFrom": "crm_topics",
|
|
"tableTo": "crm_accounts",
|
|
"columnsFrom": ["account_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "set null",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.crm_interactions": {
|
|
"name": "crm_interactions",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"type": {
|
|
"name": "type",
|
|
"type": "enum_crm_interactions_type",
|
|
"typeSchema": "public",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'note'"
|
|
},
|
|
"direction": {
|
|
"name": "direction",
|
|
"type": "enum_crm_interactions_direction",
|
|
"typeSchema": "public",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"date": {
|
|
"name": "date",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"subject": {
|
|
"name": "subject",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"contact_id": {
|
|
"name": "contact_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"account_id": {
|
|
"name": "account_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"topic_id": {
|
|
"name": "topic_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"content": {
|
|
"name": "content",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
}
|
|
},
|
|
"indexes": {
|
|
"crm_interactions_contact_idx": {
|
|
"name": "crm_interactions_contact_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "contact_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"crm_interactions_account_idx": {
|
|
"name": "crm_interactions_account_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "account_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"crm_interactions_topic_idx": {
|
|
"name": "crm_interactions_topic_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "topic_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"crm_interactions_updated_at_idx": {
|
|
"name": "crm_interactions_updated_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "updated_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"crm_interactions_created_at_idx": {
|
|
"name": "crm_interactions_created_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "created_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"crm_interactions_contact_id_crm_contacts_id_fk": {
|
|
"name": "crm_interactions_contact_id_crm_contacts_id_fk",
|
|
"tableFrom": "crm_interactions",
|
|
"tableTo": "crm_contacts",
|
|
"columnsFrom": ["contact_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "set null",
|
|
"onUpdate": "no action"
|
|
},
|
|
"crm_interactions_account_id_crm_accounts_id_fk": {
|
|
"name": "crm_interactions_account_id_crm_accounts_id_fk",
|
|
"tableFrom": "crm_interactions",
|
|
"tableTo": "crm_accounts",
|
|
"columnsFrom": ["account_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "set null",
|
|
"onUpdate": "no action"
|
|
},
|
|
"crm_interactions_topic_id_crm_topics_id_fk": {
|
|
"name": "crm_interactions_topic_id_crm_topics_id_fk",
|
|
"tableFrom": "crm_interactions",
|
|
"tableTo": "crm_topics",
|
|
"columnsFrom": ["topic_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "set null",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.crm_interactions_rels": {
|
|
"name": "crm_interactions_rels",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"order": {
|
|
"name": "order",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"parent_id": {
|
|
"name": "parent_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"path": {
|
|
"name": "path",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"media_id": {
|
|
"name": "media_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"crm_interactions_rels_order_idx": {
|
|
"name": "crm_interactions_rels_order_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "order",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"crm_interactions_rels_parent_idx": {
|
|
"name": "crm_interactions_rels_parent_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "parent_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"crm_interactions_rels_path_idx": {
|
|
"name": "crm_interactions_rels_path_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "path",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"crm_interactions_rels_media_id_idx": {
|
|
"name": "crm_interactions_rels_media_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "media_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"crm_interactions_rels_parent_fk": {
|
|
"name": "crm_interactions_rels_parent_fk",
|
|
"tableFrom": "crm_interactions_rels",
|
|
"tableTo": "crm_interactions",
|
|
"columnsFrom": ["parent_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"crm_interactions_rels_media_fk": {
|
|
"name": "crm_interactions_rels_media_fk",
|
|
"tableFrom": "crm_interactions_rels",
|
|
"tableTo": "media",
|
|
"columnsFrom": ["media_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.projects_milestones": {
|
|
"name": "projects_milestones",
|
|
"schema": "",
|
|
"columns": {
|
|
"_order": {
|
|
"name": "_order",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"_parent_id": {
|
|
"name": "_parent_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"id": {
|
|
"name": "id",
|
|
"type": "varchar",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"status": {
|
|
"name": "status",
|
|
"type": "enum_projects_milestones_status",
|
|
"typeSchema": "public",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'todo'"
|
|
},
|
|
"priority": {
|
|
"name": "priority",
|
|
"type": "enum_projects_milestones_priority",
|
|
"typeSchema": "public",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": "'medium'"
|
|
},
|
|
"start_date": {
|
|
"name": "start_date",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"target_date": {
|
|
"name": "target_date",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"assignee_id": {
|
|
"name": "assignee_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"projects_milestones_order_idx": {
|
|
"name": "projects_milestones_order_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "_order",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"projects_milestones_parent_id_idx": {
|
|
"name": "projects_milestones_parent_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "_parent_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"projects_milestones_assignee_idx": {
|
|
"name": "projects_milestones_assignee_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "assignee_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"projects_milestones_assignee_id_users_id_fk": {
|
|
"name": "projects_milestones_assignee_id_users_id_fk",
|
|
"tableFrom": "projects_milestones",
|
|
"tableTo": "users",
|
|
"columnsFrom": ["assignee_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "set null",
|
|
"onUpdate": "no action"
|
|
},
|
|
"projects_milestones_parent_id_fk": {
|
|
"name": "projects_milestones_parent_id_fk",
|
|
"tableFrom": "projects_milestones",
|
|
"tableTo": "projects",
|
|
"columnsFrom": ["_parent_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.projects": {
|
|
"name": "projects",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"title": {
|
|
"name": "title",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"account_id": {
|
|
"name": "account_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"status": {
|
|
"name": "status",
|
|
"type": "enum_projects_status",
|
|
"typeSchema": "public",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'draft'"
|
|
},
|
|
"start_date": {
|
|
"name": "start_date",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"target_date": {
|
|
"name": "target_date",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"value_min": {
|
|
"name": "value_min",
|
|
"type": "numeric",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"value_max": {
|
|
"name": "value_max",
|
|
"type": "numeric",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"briefing": {
|
|
"name": "briefing",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
}
|
|
},
|
|
"indexes": {
|
|
"projects_account_idx": {
|
|
"name": "projects_account_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "account_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"projects_updated_at_idx": {
|
|
"name": "projects_updated_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "updated_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"projects_created_at_idx": {
|
|
"name": "projects_created_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "created_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"projects_account_id_crm_accounts_id_fk": {
|
|
"name": "projects_account_id_crm_accounts_id_fk",
|
|
"tableFrom": "projects",
|
|
"tableTo": "crm_accounts",
|
|
"columnsFrom": ["account_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "set null",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.projects_rels": {
|
|
"name": "projects_rels",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"order": {
|
|
"name": "order",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"parent_id": {
|
|
"name": "parent_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"path": {
|
|
"name": "path",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"crm_contacts_id": {
|
|
"name": "crm_contacts_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"media_id": {
|
|
"name": "media_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"projects_rels_order_idx": {
|
|
"name": "projects_rels_order_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "order",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"projects_rels_parent_idx": {
|
|
"name": "projects_rels_parent_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "parent_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"projects_rels_path_idx": {
|
|
"name": "projects_rels_path_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "path",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"projects_rels_crm_contacts_id_idx": {
|
|
"name": "projects_rels_crm_contacts_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "crm_contacts_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"projects_rels_media_id_idx": {
|
|
"name": "projects_rels_media_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "media_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"projects_rels_parent_fk": {
|
|
"name": "projects_rels_parent_fk",
|
|
"tableFrom": "projects_rels",
|
|
"tableTo": "projects",
|
|
"columnsFrom": ["parent_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"projects_rels_crm_contacts_fk": {
|
|
"name": "projects_rels_crm_contacts_fk",
|
|
"tableFrom": "projects_rels",
|
|
"tableTo": "crm_contacts",
|
|
"columnsFrom": ["crm_contacts_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"projects_rels_media_fk": {
|
|
"name": "projects_rels_media_fk",
|
|
"tableFrom": "projects_rels",
|
|
"tableTo": "media",
|
|
"columnsFrom": ["media_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.payload_kv": {
|
|
"name": "payload_kv",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"key": {
|
|
"name": "key",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"data": {
|
|
"name": "data",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {
|
|
"payload_kv_key_idx": {
|
|
"name": "payload_kv_key_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "key",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": true,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.payload_locked_documents": {
|
|
"name": "payload_locked_documents",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"global_slug": {
|
|
"name": "global_slug",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
}
|
|
},
|
|
"indexes": {
|
|
"payload_locked_documents_global_slug_idx": {
|
|
"name": "payload_locked_documents_global_slug_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "global_slug",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payload_locked_documents_updated_at_idx": {
|
|
"name": "payload_locked_documents_updated_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "updated_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payload_locked_documents_created_at_idx": {
|
|
"name": "payload_locked_documents_created_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "created_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.payload_locked_documents_rels": {
|
|
"name": "payload_locked_documents_rels",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"order": {
|
|
"name": "order",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"parent_id": {
|
|
"name": "parent_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"path": {
|
|
"name": "path",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"users_id": {
|
|
"name": "users_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"media_id": {
|
|
"name": "media_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"posts_id": {
|
|
"name": "posts_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"inquiries_id": {
|
|
"name": "inquiries_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"redirects_id": {
|
|
"name": "redirects_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"context_files_id": {
|
|
"name": "context_files_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"crm_accounts_id": {
|
|
"name": "crm_accounts_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"crm_contacts_id": {
|
|
"name": "crm_contacts_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"crm_topics_id": {
|
|
"name": "crm_topics_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"crm_interactions_id": {
|
|
"name": "crm_interactions_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"projects_id": {
|
|
"name": "projects_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"payload_locked_documents_rels_order_idx": {
|
|
"name": "payload_locked_documents_rels_order_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "order",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payload_locked_documents_rels_parent_idx": {
|
|
"name": "payload_locked_documents_rels_parent_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "parent_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payload_locked_documents_rels_path_idx": {
|
|
"name": "payload_locked_documents_rels_path_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "path",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payload_locked_documents_rels_users_id_idx": {
|
|
"name": "payload_locked_documents_rels_users_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "users_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payload_locked_documents_rels_media_id_idx": {
|
|
"name": "payload_locked_documents_rels_media_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "media_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payload_locked_documents_rels_posts_id_idx": {
|
|
"name": "payload_locked_documents_rels_posts_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "posts_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payload_locked_documents_rels_inquiries_id_idx": {
|
|
"name": "payload_locked_documents_rels_inquiries_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "inquiries_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payload_locked_documents_rels_redirects_id_idx": {
|
|
"name": "payload_locked_documents_rels_redirects_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "redirects_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payload_locked_documents_rels_context_files_id_idx": {
|
|
"name": "payload_locked_documents_rels_context_files_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "context_files_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payload_locked_documents_rels_crm_accounts_id_idx": {
|
|
"name": "payload_locked_documents_rels_crm_accounts_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "crm_accounts_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payload_locked_documents_rels_crm_contacts_id_idx": {
|
|
"name": "payload_locked_documents_rels_crm_contacts_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "crm_contacts_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payload_locked_documents_rels_crm_topics_id_idx": {
|
|
"name": "payload_locked_documents_rels_crm_topics_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "crm_topics_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payload_locked_documents_rels_crm_interactions_id_idx": {
|
|
"name": "payload_locked_documents_rels_crm_interactions_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "crm_interactions_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payload_locked_documents_rels_projects_id_idx": {
|
|
"name": "payload_locked_documents_rels_projects_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "projects_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"payload_locked_documents_rels_parent_fk": {
|
|
"name": "payload_locked_documents_rels_parent_fk",
|
|
"tableFrom": "payload_locked_documents_rels",
|
|
"tableTo": "payload_locked_documents",
|
|
"columnsFrom": ["parent_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"payload_locked_documents_rels_users_fk": {
|
|
"name": "payload_locked_documents_rels_users_fk",
|
|
"tableFrom": "payload_locked_documents_rels",
|
|
"tableTo": "users",
|
|
"columnsFrom": ["users_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"payload_locked_documents_rels_media_fk": {
|
|
"name": "payload_locked_documents_rels_media_fk",
|
|
"tableFrom": "payload_locked_documents_rels",
|
|
"tableTo": "media",
|
|
"columnsFrom": ["media_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"payload_locked_documents_rels_posts_fk": {
|
|
"name": "payload_locked_documents_rels_posts_fk",
|
|
"tableFrom": "payload_locked_documents_rels",
|
|
"tableTo": "posts",
|
|
"columnsFrom": ["posts_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"payload_locked_documents_rels_inquiries_fk": {
|
|
"name": "payload_locked_documents_rels_inquiries_fk",
|
|
"tableFrom": "payload_locked_documents_rels",
|
|
"tableTo": "inquiries",
|
|
"columnsFrom": ["inquiries_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"payload_locked_documents_rels_redirects_fk": {
|
|
"name": "payload_locked_documents_rels_redirects_fk",
|
|
"tableFrom": "payload_locked_documents_rels",
|
|
"tableTo": "redirects",
|
|
"columnsFrom": ["redirects_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"payload_locked_documents_rels_context_files_fk": {
|
|
"name": "payload_locked_documents_rels_context_files_fk",
|
|
"tableFrom": "payload_locked_documents_rels",
|
|
"tableTo": "context_files",
|
|
"columnsFrom": ["context_files_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"payload_locked_documents_rels_crm_accounts_fk": {
|
|
"name": "payload_locked_documents_rels_crm_accounts_fk",
|
|
"tableFrom": "payload_locked_documents_rels",
|
|
"tableTo": "crm_accounts",
|
|
"columnsFrom": ["crm_accounts_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"payload_locked_documents_rels_crm_contacts_fk": {
|
|
"name": "payload_locked_documents_rels_crm_contacts_fk",
|
|
"tableFrom": "payload_locked_documents_rels",
|
|
"tableTo": "crm_contacts",
|
|
"columnsFrom": ["crm_contacts_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"payload_locked_documents_rels_crm_topics_fk": {
|
|
"name": "payload_locked_documents_rels_crm_topics_fk",
|
|
"tableFrom": "payload_locked_documents_rels",
|
|
"tableTo": "crm_topics",
|
|
"columnsFrom": ["crm_topics_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"payload_locked_documents_rels_crm_interactions_fk": {
|
|
"name": "payload_locked_documents_rels_crm_interactions_fk",
|
|
"tableFrom": "payload_locked_documents_rels",
|
|
"tableTo": "crm_interactions",
|
|
"columnsFrom": ["crm_interactions_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"payload_locked_documents_rels_projects_fk": {
|
|
"name": "payload_locked_documents_rels_projects_fk",
|
|
"tableFrom": "payload_locked_documents_rels",
|
|
"tableTo": "projects",
|
|
"columnsFrom": ["projects_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.payload_preferences": {
|
|
"name": "payload_preferences",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"key": {
|
|
"name": "key",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"value": {
|
|
"name": "value",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
}
|
|
},
|
|
"indexes": {
|
|
"payload_preferences_key_idx": {
|
|
"name": "payload_preferences_key_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "key",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payload_preferences_updated_at_idx": {
|
|
"name": "payload_preferences_updated_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "updated_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payload_preferences_created_at_idx": {
|
|
"name": "payload_preferences_created_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "created_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.payload_preferences_rels": {
|
|
"name": "payload_preferences_rels",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"order": {
|
|
"name": "order",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"parent_id": {
|
|
"name": "parent_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"path": {
|
|
"name": "path",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"users_id": {
|
|
"name": "users_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"payload_preferences_rels_order_idx": {
|
|
"name": "payload_preferences_rels_order_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "order",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payload_preferences_rels_parent_idx": {
|
|
"name": "payload_preferences_rels_parent_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "parent_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payload_preferences_rels_path_idx": {
|
|
"name": "payload_preferences_rels_path_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "path",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payload_preferences_rels_users_id_idx": {
|
|
"name": "payload_preferences_rels_users_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "users_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"payload_preferences_rels_parent_fk": {
|
|
"name": "payload_preferences_rels_parent_fk",
|
|
"tableFrom": "payload_preferences_rels",
|
|
"tableTo": "payload_preferences",
|
|
"columnsFrom": ["parent_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"payload_preferences_rels_users_fk": {
|
|
"name": "payload_preferences_rels_users_fk",
|
|
"tableFrom": "payload_preferences_rels",
|
|
"tableTo": "users",
|
|
"columnsFrom": ["users_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.payload_migrations": {
|
|
"name": "payload_migrations",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"batch": {
|
|
"name": "batch",
|
|
"type": "numeric",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "now()"
|
|
}
|
|
},
|
|
"indexes": {
|
|
"payload_migrations_updated_at_idx": {
|
|
"name": "payload_migrations_updated_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "updated_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payload_migrations_created_at_idx": {
|
|
"name": "payload_migrations_created_at_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "created_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.ai_settings_custom_sources": {
|
|
"name": "ai_settings_custom_sources",
|
|
"schema": "",
|
|
"columns": {
|
|
"_order": {
|
|
"name": "_order",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"_parent_id": {
|
|
"name": "_parent_id",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"id": {
|
|
"name": "id",
|
|
"type": "varchar",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"source_name": {
|
|
"name": "source_name",
|
|
"type": "varchar",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {
|
|
"ai_settings_custom_sources_order_idx": {
|
|
"name": "ai_settings_custom_sources_order_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "_order",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"ai_settings_custom_sources_parent_id_idx": {
|
|
"name": "ai_settings_custom_sources_parent_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "_parent_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"ai_settings_custom_sources_parent_id_fk": {
|
|
"name": "ai_settings_custom_sources_parent_id_fk",
|
|
"tableFrom": "ai_settings_custom_sources",
|
|
"tableTo": "ai_settings",
|
|
"columnsFrom": ["_parent_id"],
|
|
"columnsTo": ["id"],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.ai_settings": {
|
|
"name": "ai_settings",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp(3) with time zone",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
}
|
|
},
|
|
"enums": {
|
|
"public.enum_posts_status": {
|
|
"name": "enum_posts_status",
|
|
"schema": "public",
|
|
"values": ["draft", "published"]
|
|
},
|
|
"public.enum__posts_v_version_status": {
|
|
"name": "enum__posts_v_version_status",
|
|
"schema": "public",
|
|
"values": ["draft", "published"]
|
|
},
|
|
"public.enum_crm_accounts_status": {
|
|
"name": "enum_crm_accounts_status",
|
|
"schema": "public",
|
|
"values": ["lead", "client", "partner", "lost"]
|
|
},
|
|
"public.enum_crm_accounts_lead_temperature": {
|
|
"name": "enum_crm_accounts_lead_temperature",
|
|
"schema": "public",
|
|
"values": ["cold", "warm", "hot"]
|
|
},
|
|
"public.enum_crm_topics_status": {
|
|
"name": "enum_crm_topics_status",
|
|
"schema": "public",
|
|
"values": ["active", "paused", "won", "lost"]
|
|
},
|
|
"public.enum_crm_topics_stage": {
|
|
"name": "enum_crm_topics_stage",
|
|
"schema": "public",
|
|
"values": ["discovery", "proposal", "negotiation", "implementation"]
|
|
},
|
|
"public.enum_crm_interactions_type": {
|
|
"name": "enum_crm_interactions_type",
|
|
"schema": "public",
|
|
"values": [
|
|
"email",
|
|
"call",
|
|
"meeting",
|
|
"whatsapp",
|
|
"social",
|
|
"document",
|
|
"note"
|
|
]
|
|
},
|
|
"public.enum_crm_interactions_direction": {
|
|
"name": "enum_crm_interactions_direction",
|
|
"schema": "public",
|
|
"values": ["inbound", "outbound"]
|
|
},
|
|
"public.enum_projects_milestones_status": {
|
|
"name": "enum_projects_milestones_status",
|
|
"schema": "public",
|
|
"values": ["todo", "in_progress", "done"]
|
|
},
|
|
"public.enum_projects_milestones_priority": {
|
|
"name": "enum_projects_milestones_priority",
|
|
"schema": "public",
|
|
"values": ["low", "medium", "high"]
|
|
},
|
|
"public.enum_projects_status": {
|
|
"name": "enum_projects_status",
|
|
"schema": "public",
|
|
"values": ["draft", "in_progress", "review", "completed"]
|
|
}
|
|
},
|
|
"schemas": {},
|
|
"sequences": {},
|
|
"roles": {},
|
|
"policies": {},
|
|
"views": {},
|
|
"_meta": {
|
|
"schemas": {},
|
|
"tables": {},
|
|
"columns": {}
|
|
},
|
|
"id": "766409a0-4873-48a0-93e9-c6252b2b97c7",
|
|
"prevId": "00000000-0000-0000-0000-000000000000"
|
|
}
|