{
  "id": "a001b9c1-c931-4e9f-b21c-50cdfbffb6a6",
  "prevId": "00000000-0000-0000-0000-000000000000",
  "version": "7",
  "dialect": "postgresql",
  "tables": {
    "public.app_config": {
      "name": "app_config",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "text",
          "primaryKey": true,
          "notNull": true
        },
        "key": {
          "name": "key",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "value": {
          "name": "value",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "app_config_key_unique": {
          "name": "app_config_key_unique",
          "nullsNotDistinct": false,
          "columns": [
            "key"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.category": {
      "name": "category",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "text",
          "primaryKey": true,
          "notNull": true
        },
        "slug": {
          "name": "slug",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "name_ar": {
          "name": "name_ar",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "name_en": {
          "name": "name_en",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "name_de": {
          "name": "name_de",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "description_ar": {
          "name": "description_ar",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "description_en": {
          "name": "description_en",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "description_de": {
          "name": "description_de",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "sort_order": {
          "name": "sort_order",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 0
        },
        "is_active": {
          "name": "is_active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "category_slug_unique": {
          "name": "category_slug_unique",
          "nullsNotDistinct": false,
          "columns": [
            "slug"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.media_asset": {
      "name": "media_asset",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "text",
          "primaryKey": true,
          "notNull": true
        },
        "source": {
          "name": "source",
          "type": "media_source",
          "typeSchema": "public",
          "primaryKey": false,
          "notNull": true
        },
        "kind": {
          "name": "kind",
          "type": "media_kind",
          "typeSchema": "public",
          "primaryKey": false,
          "notNull": true
        },
        "url": {
          "name": "url",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "file_name": {
          "name": "file_name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "label": {
          "name": "label",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "alt_text": {
          "name": "alt_text",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "mime_type": {
          "name": "mime_type",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "size": {
          "name": "size",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "media_asset_kind_created_idx": {
          "name": "media_asset_kind_created_idx",
          "columns": [
            {
              "expression": "kind",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            },
            {
              "expression": "created_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.media_usage": {
      "name": "media_usage",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "text",
          "primaryKey": true,
          "notNull": true
        },
        "asset_id": {
          "name": "asset_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "usage_type": {
          "name": "usage_type",
          "type": "media_usage_type",
          "typeSchema": "public",
          "primaryKey": false,
          "notNull": true
        },
        "entity_type": {
          "name": "entity_type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "entity_id": {
          "name": "entity_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "field_key": {
          "name": "field_key",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "media_usage_unique_slot": {
          "name": "media_usage_unique_slot",
          "columns": [
            {
              "expression": "usage_type",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            },
            {
              "expression": "entity_type",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            },
            {
              "expression": "entity_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            },
            {
              "expression": "field_key",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": true,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "media_usage_asset_idx": {
          "name": "media_usage_asset_idx",
          "columns": [
            {
              "expression": "asset_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "media_usage_entity_idx": {
          "name": "media_usage_entity_idx",
          "columns": [
            {
              "expression": "entity_type",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            },
            {
              "expression": "entity_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "media_usage_asset_id_media_asset_id_fk": {
          "name": "media_usage_asset_id_media_asset_id_fk",
          "tableFrom": "media_usage",
          "tableTo": "media_asset",
          "columnsFrom": [
            "asset_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.portfolio_asset": {
      "name": "portfolio_asset",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "text",
          "primaryKey": true,
          "notNull": true
        },
        "project_id": {
          "name": "project_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "kind": {
          "name": "kind",
          "type": "portfolio_asset_kind",
          "typeSchema": "public",
          "primaryKey": false,
          "notNull": true
        },
        "file_path": {
          "name": "file_path",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "alt_ar": {
          "name": "alt_ar",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "alt_en": {
          "name": "alt_en",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "alt_de": {
          "name": "alt_de",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "sort_order": {
          "name": "sort_order",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 0
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "portfolio_asset_project_sort_idx": {
          "name": "portfolio_asset_project_sort_idx",
          "columns": [
            {
              "expression": "project_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            },
            {
              "expression": "sort_order",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "portfolio_asset_project_id_portfolio_project_id_fk": {
          "name": "portfolio_asset_project_id_portfolio_project_id_fk",
          "tableFrom": "portfolio_asset",
          "tableTo": "portfolio_project",
          "columnsFrom": [
            "project_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.portfolio_project": {
      "name": "portfolio_project",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "text",
          "primaryKey": true,
          "notNull": true
        },
        "category_id": {
          "name": "category_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "slug": {
          "name": "slug",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "view_mode": {
          "name": "view_mode",
          "type": "portfolio_project_view_mode",
          "typeSchema": "public",
          "primaryKey": false,
          "notNull": true,
          "default": "'GRID'"
        },
        "title_ar": {
          "name": "title_ar",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "title_en": {
          "name": "title_en",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "title_de": {
          "name": "title_de",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "summary_ar": {
          "name": "summary_ar",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "summary_en": {
          "name": "summary_en",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "summary_de": {
          "name": "summary_de",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "client_name": {
          "name": "client_name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "project_year": {
          "name": "project_year",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "service_label_ar": {
          "name": "service_label_ar",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "service_label_en": {
          "name": "service_label_en",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "service_label_de": {
          "name": "service_label_de",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "preview_url": {
          "name": "preview_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "cover_image_path": {
          "name": "cover_image_path",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "is_featured": {
          "name": "is_featured",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "is_published": {
          "name": "is_published",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "published_at": {
          "name": "published_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": false
        },
        "sort_order": {
          "name": "sort_order",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 0
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "portfolio_project_category_published_sort_idx": {
          "name": "portfolio_project_category_published_sort_idx",
          "columns": [
            {
              "expression": "category_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            },
            {
              "expression": "is_published",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            },
            {
              "expression": "sort_order",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "portfolio_project_published_sort_idx": {
          "name": "portfolio_project_published_sort_idx",
          "columns": [
            {
              "expression": "is_published",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            },
            {
              "expression": "sort_order",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "portfolio_project_category_id_category_id_fk": {
          "name": "portfolio_project_category_id_category_id_fk",
          "tableFrom": "portfolio_project",
          "tableTo": "category",
          "columnsFrom": [
            "category_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "restrict",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "portfolio_project_slug_unique": {
          "name": "portfolio_project_slug_unique",
          "nullsNotDistinct": false,
          "columns": [
            "slug"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.portfolio_section": {
      "name": "portfolio_section",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "text",
          "primaryKey": true,
          "notNull": true
        },
        "project_id": {
          "name": "project_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "type": {
          "name": "type",
          "type": "portfolio_section_type",
          "typeSchema": "public",
          "primaryKey": false,
          "notNull": true
        },
        "title_ar": {
          "name": "title_ar",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "title_en": {
          "name": "title_en",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "title_de": {
          "name": "title_de",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "body_ar": {
          "name": "body_ar",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "body_en": {
          "name": "body_en",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "body_de": {
          "name": "body_de",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "image_path": {
          "name": "image_path",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "link_url": {
          "name": "link_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "sort_order": {
          "name": "sort_order",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 0
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "portfolio_section_project_sort_idx": {
          "name": "portfolio_section_project_sort_idx",
          "columns": [
            {
              "expression": "project_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            },
            {
              "expression": "sort_order",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "portfolio_section_project_id_portfolio_project_id_fk": {
          "name": "portfolio_section_project_id_portfolio_project_id_fk",
          "tableFrom": "portfolio_section",
          "tableTo": "portfolio_project",
          "columnsFrom": [
            "project_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    }
  },
  "enums": {
    "public.media_kind": {
      "name": "media_kind",
      "schema": "public",
      "values": [
        "IMAGE",
        "DOCUMENT"
      ]
    },
    "public.media_source": {
      "name": "media_source",
      "schema": "public",
      "values": [
        "UPLOAD",
        "EXTERNAL"
      ]
    },
    "public.media_usage_type": {
      "name": "media_usage_type",
      "schema": "public",
      "values": [
        "PORTFOLIO_COVER",
        "PORTFOLIO_SECTION",
        "PORTFOLIO_ASSET",
        "GENERIC"
      ]
    },
    "public.portfolio_asset_kind": {
      "name": "portfolio_asset_kind",
      "schema": "public",
      "values": [
        "IMAGE",
        "DOCUMENT"
      ]
    },
    "public.portfolio_project_view_mode": {
      "name": "portfolio_project_view_mode",
      "schema": "public",
      "values": [
        "GRID",
        "STORY",
        "CASE_STUDY"
      ]
    },
    "public.portfolio_section_type": {
      "name": "portfolio_section_type",
      "schema": "public",
      "values": [
        "RICH_TEXT",
        "GALLERY",
        "STATS",
        "DELIVERABLES",
        "LINK"
      ]
    }
  },
  "schemas": {},
  "sequences": {},
  "roles": {},
  "policies": {},
  "views": {},
  "_meta": {
    "columns": {},
    "schemas": {},
    "tables": {}
  }
}