Skip to main content
Glama
0001_snapshot.json90.8 kB
{ "id": "671cb450-7b10-409f-af40-b9af946b9cb6", "prevId": "d48239d3-70bc-486d-b5eb-2690e237dfce", "version": "7", "dialect": "postgresql", "tables": { "public.accounts": { "name": "accounts", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "account_id": { "name": "account_id", "type": "text", "primaryKey": false, "notNull": true }, "provider_id": { "name": "provider_id", "type": "text", "primaryKey": false, "notNull": true }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "access_token": { "name": "access_token", "type": "text", "primaryKey": false, "notNull": false }, "refresh_token": { "name": "refresh_token", "type": "text", "primaryKey": false, "notNull": false }, "id_token": { "name": "id_token", "type": "text", "primaryKey": false, "notNull": false }, "access_token_expires_at": { "name": "access_token_expires_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "refresh_token_expires_at": { "name": "refresh_token_expires_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "scope": { "name": "scope", "type": "text", "primaryKey": false, "notNull": false }, "password": { "name": "password", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": { "accounts_user_id_users_id_fk": { "name": "accounts_user_id_users_id_fk", "tableFrom": "accounts", "tableTo": "users", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.api_keys": { "name": "api_keys", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "name": { "name": "name", "type": "varchar(256)", "primaryKey": false, "notNull": true }, "start": { "name": "start", "type": "varchar(256)", "primaryKey": false, "notNull": false }, "prefix": { "name": "prefix", "type": "varchar(256)", "primaryKey": false, "notNull": false }, "key": { "name": "key", "type": "varchar(256)", "primaryKey": false, "notNull": true }, "user_id": { "name": "user_id", "type": "varchar(256)", "primaryKey": false, "notNull": true }, "refill_interval": { "name": "refill_interval", "type": "numeric", "primaryKey": false, "notNull": false }, "refill_amount": { "name": "refill_amount", "type": "numeric", "primaryKey": false, "notNull": false }, "last_refill_at": { "name": "last_refill_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "enabled": { "name": "enabled", "type": "boolean", "primaryKey": false, "notNull": true, "default": true }, "rate_limit_enabled": { "name": "rate_limit_enabled", "type": "boolean", "primaryKey": false, "notNull": true, "default": true }, "rate_limit_time_window": { "name": "rate_limit_time_window", "type": "numeric", "primaryKey": false, "notNull": true }, "rate_limit_max": { "name": "rate_limit_max", "type": "numeric", "primaryKey": false, "notNull": true }, "request_count": { "name": "request_count", "type": "numeric", "primaryKey": false, "notNull": true }, "remaining": { "name": "remaining", "type": "numeric", "primaryKey": false, "notNull": true }, "last_request": { "name": "last_request", "type": "timestamp", "primaryKey": false, "notNull": false }, "expires_at": { "name": "expires_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true }, "permissions": { "name": "permissions", "type": "text", "primaryKey": false, "notNull": false }, "metadata": { "name": "metadata", "type": "jsonb", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.phone_verification_codes": { "name": "phone_verification_codes", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "phone": { "name": "phone", "type": "varchar(20)", "primaryKey": false, "notNull": true }, "code": { "name": "code", "type": "varchar(6)", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": false, "default": "now()" }, "expires_at": { "name": "expires_at", "type": "timestamp", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.sessions": { "name": "sessions", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "expires_at": { "name": "expires_at", "type": "timestamp", "primaryKey": false, "notNull": true }, "token": { "name": "token", "type": "text", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true }, "ip_address": { "name": "ip_address", "type": "text", "primaryKey": false, "notNull": false }, "user_agent": { "name": "user_agent", "type": "text", "primaryKey": false, "notNull": false }, "impersonated_by": { "name": "impersonated_by", "type": "text", "primaryKey": false, "notNull": false }, "impersonated_at": { "name": "impersonated_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": { "sessions_user_id_users_id_fk": { "name": "sessions_user_id_users_id_fk", "tableFrom": "sessions", "tableTo": "users", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": { "sessions_token_unique": { "name": "sessions_token_unique", "nullsNotDistinct": false, "columns": [ "token" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.users": { "name": "users", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "password": { "name": "password", "type": "text", "primaryKey": false, "notNull": false }, "email": { "name": "email", "type": "text", "primaryKey": false, "notNull": true }, "email_verified": { "name": "email_verified", "type": "boolean", "primaryKey": false, "notNull": true }, "image": { "name": "image", "type": "text", "primaryKey": false, "notNull": false }, "phone_number": { "name": "phone_number", "type": "text", "primaryKey": false, "notNull": false }, "phone_number_verified": { "name": "phone_number_verified", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "role": { "name": "role", "type": "varchar(64)", "primaryKey": false, "notNull": false, "default": "'user'" }, "banned": { "name": "banned", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "banned_reason": { "name": "banned_reason", "type": "text", "primaryKey": false, "notNull": false }, "ban_expires": { "name": "ban_expires", "type": "timestamp", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true }, "location": { "name": "location", "type": "text", "primaryKey": false, "notNull": false }, "bio": { "name": "bio", "type": "text", "primaryKey": false, "notNull": false }, "company": { "name": "company", "type": "text", "primaryKey": false, "notNull": false }, "position": { "name": "position", "type": "text", "primaryKey": false, "notNull": false }, "website": { "name": "website", "type": "text", "primaryKey": false, "notNull": false }, "github": { "name": "github", "type": "text", "primaryKey": false, "notNull": false }, "twitter": { "name": "twitter", "type": "text", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": { "users_email_unique": { "name": "users_email_unique", "nullsNotDistinct": false, "columns": [ "email" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.verifications": { "name": "verifications", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "identifier": { "name": "identifier", "type": "text", "primaryKey": false, "notNull": true }, "value": { "name": "value", "type": "text", "primaryKey": false, "notNull": true }, "expires_at": { "name": "expires_at", "type": "timestamp", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.activities": { "name": "activities", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "type": { "name": "type", "type": "varchar(50)", "primaryKey": false, "notNull": true }, "resource_id": { "name": "resource_id", "type": "text", "primaryKey": false, "notNull": false }, "resource_type": { "name": "resource_type", "type": "varchar(50)", "primaryKey": false, "notNull": false }, "resource_name": { "name": "resource_name", "type": "varchar(255)", "primaryKey": false, "notNull": false }, "status": { "name": "status", "type": "varchar(50)", "primaryKey": false, "notNull": true }, "details": { "name": "details", "type": "jsonb", "primaryKey": false, "notNull": false }, "summary": { "name": "summary", "type": "varchar", "primaryKey": false, "notNull": false }, "start_time": { "name": "start_time", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "end_time": { "name": "end_time", "type": "timestamp", "primaryKey": false, "notNull": false }, "duration": { "name": "duration", "type": "varchar(50)", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "activities_user_id_idx": { "name": "activities_user_id_idx", "columns": [ { "expression": "user_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.ads": { "name": "ads", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "type": { "name": "type", "type": "varchar(20)", "primaryKey": false, "notNull": true }, "title": { "name": "title", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": true }, "url": { "name": "url", "type": "text", "primaryKey": false, "notNull": true }, "image_url": { "name": "image_url", "type": "text", "primaryKey": false, "notNull": false }, "placement": { "name": "placement", "type": "varchar", "primaryKey": false, "notNull": true, "default": "'bottom'" }, "start_date": { "name": "start_date", "type": "timestamp", "primaryKey": false, "notNull": true }, "end_date": { "name": "end_date", "type": "timestamp", "primaryKey": false, "notNull": true }, "status": { "name": "status", "type": "varchar(20)", "primaryKey": false, "notNull": true, "default": "'pending'" }, "price": { "name": "price", "type": "real", "primaryKey": false, "notNull": true, "default": 0 }, "budget": { "name": "budget", "type": "real", "primaryKey": false, "notNull": true }, "spent": { "name": "spent", "type": "real", "primaryKey": false, "notNull": true, "default": 0 }, "cpc": { "name": "cpc", "type": "real", "primaryKey": false, "notNull": true, "default": 0 }, "impressions": { "name": "impressions", "type": "integer", "primaryKey": false, "notNull": false, "default": 0 }, "clicks": { "name": "clicks", "type": "integer", "primaryKey": false, "notNull": false, "default": 0 }, "ctr": { "name": "ctr", "type": "real", "primaryKey": false, "notNull": false, "default": 0 }, "app_id": { "name": "app_id", "type": "text", "primaryKey": false, "notNull": false }, "approved_at": { "name": "approved_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "approved_by": { "name": "approved_by", "type": "text", "primaryKey": false, "notNull": false }, "rejection_reason": { "name": "rejection_reason", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "ads_user_id_idx": { "name": "ads_user_id_idx", "columns": [ { "expression": "user_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "ads_status_idx": { "name": "ads_status_idx", "columns": [ { "expression": "status", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "ads_dates_idx": { "name": "ads_dates_idx", "columns": [ { "expression": "start_date", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "end_date", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.app_analysis_history": { "name": "app_analysis_history", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "type": { "name": "type", "type": "varchar(20)", "primaryKey": false, "notNull": true }, "app_id": { "name": "app_id", "type": "text", "primaryKey": false, "notNull": true }, "url": { "name": "url", "type": "text", "primaryKey": false, "notNull": true }, "version": { "name": "version", "type": "varchar(50)", "primaryKey": false, "notNull": false }, "analysis_result": { "name": "analysis_result", "type": "jsonb", "primaryKey": false, "notNull": true }, "features": { "name": "features", "type": "text[]", "primaryKey": false, "notNull": false }, "tools": { "name": "tools", "type": "jsonb", "primaryKey": false, "notNull": false }, "readme": { "name": "readme", "type": "text", "primaryKey": false, "notNull": false }, "tags": { "name": "tags", "type": "text[]", "primaryKey": false, "notNull": false }, "categories": { "name": "categories", "type": "text[]", "primaryKey": false, "notNull": false }, "status": { "name": "status", "type": "varchar(50)", "primaryKey": false, "notNull": true, "default": "'pending'" }, "message": { "name": "message", "type": "text", "primaryKey": false, "notNull": false }, "error": { "name": "error", "type": "text", "primaryKey": false, "notNull": false }, "start_time": { "name": "start_time", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "end_time": { "name": "end_time", "type": "timestamp", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "app_analysis_history_app_id_idx": { "name": "app_analysis_history_app_id_idx", "columns": [ { "expression": "app_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "app_analysis_history_status_idx": { "name": "app_analysis_history_status_idx", "columns": [ { "expression": "status", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.app_categories": { "name": "app_categories", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "app_id": { "name": "app_id", "type": "text", "primaryKey": false, "notNull": true }, "category_id": { "name": "category_id", "type": "text", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "app_categories_app_id_idx": { "name": "app_categories_app_id_idx", "columns": [ { "expression": "app_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "app_categories_category_id_idx": { "name": "app_categories_category_id_idx", "columns": [ { "expression": "category_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "app_categories_unique_idx": { "name": "app_categories_unique_idx", "columns": [ { "expression": "app_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "category_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.app_rss": { "name": "app_rss", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "app_id": { "name": "app_id", "type": "text", "primaryKey": false, "notNull": true }, "title": { "name": "title", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": false }, "feed_url": { "name": "feed_url", "type": "text", "primaryKey": false, "notNull": true }, "last_fetched": { "name": "last_fetched", "type": "timestamp", "primaryKey": false, "notNull": false }, "last_updated": { "name": "last_updated", "type": "timestamp", "primaryKey": false, "notNull": false }, "is_active": { "name": "is_active", "type": "boolean", "primaryKey": false, "notNull": false, "default": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "app_rss_app_id_idx": { "name": "app_rss_app_id_idx", "columns": [ { "expression": "app_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "app_rss_feed_url_idx": { "name": "app_rss_feed_url_idx", "columns": [ { "expression": "feed_url", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.app_submissions": { "name": "app_submissions", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": true }, "long_description": { "name": "long_description", "type": "text", "primaryKey": false, "notNull": false }, "type": { "name": "type", "type": "varchar(20)", "primaryKey": false, "notNull": true }, "website": { "name": "website", "type": "text", "primaryKey": false, "notNull": false }, "github": { "name": "github", "type": "text", "primaryKey": false, "notNull": false }, "docs": { "name": "docs", "type": "text", "primaryKey": false, "notNull": false }, "favicon": { "name": "favicon", "type": "text", "primaryKey": false, "notNull": false }, "logo": { "name": "logo", "type": "text", "primaryKey": false, "notNull": false }, "app_id": { "name": "app_id", "type": "text", "primaryKey": false, "notNull": false }, "version": { "name": "version", "type": "varchar(50)", "primaryKey": false, "notNull": false }, "license": { "name": "license", "type": "varchar(255)", "primaryKey": false, "notNull": false }, "scenario": { "name": "scenario", "type": "varchar(50)", "primaryKey": false, "notNull": false }, "features": { "name": "features", "type": "text[]", "primaryKey": false, "notNull": false }, "tags": { "name": "tags", "type": "text[]", "primaryKey": false, "notNull": false }, "status": { "name": "status", "type": "varchar(20)", "primaryKey": false, "notNull": true, "default": "'pending'" }, "rejection_reason": { "name": "rejection_reason", "type": "text", "primaryKey": false, "notNull": false }, "reviewed_at": { "name": "reviewed_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "reviewed_by": { "name": "reviewed_by", "type": "text", "primaryKey": false, "notNull": false }, "approved_app_id": { "name": "approved_app_id", "type": "text", "primaryKey": false, "notNull": false }, "approved_at": { "name": "approved_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "approved_by": { "name": "approved_by", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "app_submissions_user_id_idx": { "name": "app_submissions_user_id_idx", "columns": [ { "expression": "user_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "app_submissions_status_idx": { "name": "app_submissions_status_idx", "columns": [ { "expression": "status", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "app_submissions_reviewed_by_idx": { "name": "app_submissions_reviewed_by_idx", "columns": [ { "expression": "reviewed_by", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "app_submissions_approved_app_id_idx": { "name": "app_submissions_approved_app_id_idx", "columns": [ { "expression": "approved_app_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.app_tags": { "name": "app_tags", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "app_id": { "name": "app_id", "type": "text", "primaryKey": false, "notNull": true }, "tag_id": { "name": "tag_id", "type": "text", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "app_tags_app_id_idx": { "name": "app_tags_app_id_idx", "columns": [ { "expression": "app_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "app_tags_tag_id_idx": { "name": "app_tags_tag_id_idx", "columns": [ { "expression": "tag_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "app_tags_unique_idx": { "name": "app_tags_unique_idx", "columns": [ { "expression": "app_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "tag_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.apps": { "name": "apps", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "slug": { "name": "slug", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "category_id": { "name": "category_id", "type": "text", "primaryKey": false, "notNull": false }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": true }, "long_description": { "name": "long_description", "type": "text", "primaryKey": false, "notNull": false }, "readme": { "name": "readme", "type": "text", "primaryKey": false, "notNull": false }, "type": { "name": "type", "type": "varchar(20)", "primaryKey": false, "notNull": true }, "deployable": { "name": "deployable", "type": "boolean", "primaryKey": false, "notNull": false, "default": false }, "source": { "name": "source", "type": "varchar(20)", "primaryKey": false, "notNull": true }, "status": { "name": "status", "type": "varchar(20)", "primaryKey": false, "notNull": true }, "publish_status": { "name": "publish_status", "type": "varchar(20)", "primaryKey": false, "notNull": true }, "analysed": { "name": "analysed", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "icon": { "name": "icon", "type": "text", "primaryKey": false, "notNull": false }, "banner": { "name": "banner", "type": "varchar(255)", "primaryKey": false, "notNull": false }, "pics": { "name": "pics", "type": "text[]", "primaryKey": false, "notNull": false }, "website": { "name": "website", "type": "text", "primaryKey": false, "notNull": false }, "github": { "name": "github", "type": "text", "primaryKey": false, "notNull": false }, "docs": { "name": "docs", "type": "text", "primaryKey": false, "notNull": false }, "version": { "name": "version", "type": "varchar(50)", "primaryKey": false, "notNull": false }, "license": { "name": "license", "type": "varchar(255)", "primaryKey": false, "notNull": false }, "stars": { "name": "stars", "type": "integer", "primaryKey": false, "notNull": false, "default": 0 }, "featured": { "name": "featured", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "scenario": { "name": "scenario", "type": "varchar(50)", "primaryKey": false, "notNull": false }, "forks": { "name": "forks", "type": "integer", "primaryKey": false, "notNull": false, "default": 0 }, "issues": { "name": "issues", "type": "integer", "primaryKey": false, "notNull": false, "default": 0 }, "pull_requests": { "name": "pull_requests", "type": "integer", "primaryKey": false, "notNull": false, "default": 0 }, "contributors": { "name": "contributors", "type": "integer", "primaryKey": false, "notNull": false, "default": 0 }, "last_commit": { "name": "last_commit", "type": "timestamp", "primaryKey": false, "notNull": false }, "supported_servers": { "name": "supported_servers", "type": "text[]", "primaryKey": false, "notNull": false }, "features": { "name": "features", "type": "text[]", "primaryKey": false, "notNull": false }, "tools": { "name": "tools", "type": "jsonb", "primaryKey": false, "notNull": false }, "owner_id": { "name": "owner_id", "type": "text", "primaryKey": false, "notNull": false }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": false }, "owner_name": { "name": "owner_name", "type": "varchar(255)", "primaryKey": false, "notNull": false }, "verified": { "name": "verified", "type": "boolean", "primaryKey": false, "notNull": false, "default": false }, "deleted": { "name": "deleted", "type": "boolean", "primaryKey": false, "notNull": false, "default": false }, "created_by": { "name": "created_by", "type": "varchar(255)", "primaryKey": false, "notNull": false }, "updated_by": { "name": "updated_by", "type": "varchar(255)", "primaryKey": false, "notNull": false }, "published_at": { "name": "published_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "apps_slug_idx": { "name": "apps_slug_idx", "columns": [ { "expression": "slug", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "apps_type_idx": { "name": "apps_type_idx", "columns": [ { "expression": "type", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "apps_owner_id_idx": { "name": "apps_owner_id_idx", "columns": [ { "expression": "owner_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "apps_name_type_unique_idx": { "name": "apps_name_type_unique_idx", "columns": [ { "expression": "name", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "type", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} }, "apps_website_idx": { "name": "apps_website_idx", "columns": [ { "expression": "website", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} }, "apps_github_idx": { "name": "apps_github_idx", "columns": [ { "expression": "github", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": { "apps_slug_unique": { "name": "apps_slug_unique", "nullsNotDistinct": false, "columns": [ "slug" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.assets": { "name": "assets", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "asset_type": { "name": "asset_type", "type": "varchar(20)", "primaryKey": false, "notNull": true }, "content_type": { "name": "content_type", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "file_name": { "name": "file_name", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "size": { "name": "size", "type": "integer", "primaryKey": false, "notNull": true }, "path": { "name": "path", "type": "text", "primaryKey": false, "notNull": true }, "url": { "name": "url", "type": "text", "primaryKey": false, "notNull": false }, "bookmark_id": { "name": "bookmark_id", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "assets_user_id_idx": { "name": "assets_user_id_idx", "columns": [ { "expression": "user_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "assets_asset_type_idx": { "name": "assets_asset_type_idx", "columns": [ { "expression": "asset_type", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "assets_bookmark_id_idx": { "name": "assets_bookmark_id_idx", "columns": [ { "expression": "bookmark_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.categories": { "name": "categories", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "parent_id": { "name": "parent_id", "type": "text", "primaryKey": false, "notNull": false }, "name": { "name": "name", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": false }, "slug": { "name": "slug", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "apps_count": { "name": "apps_count", "type": "integer", "primaryKey": false, "notNull": false, "default": 0 }, "icon": { "name": "icon", "type": "text", "primaryKey": false, "notNull": false }, "status": { "name": "status", "type": "varchar(20)", "primaryKey": false, "notNull": true, "default": "'offline'" }, "deleted": { "name": "deleted", "type": "boolean", "primaryKey": false, "notNull": false, "default": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "categories_slug_idx": { "name": "categories_slug_idx", "columns": [ { "expression": "slug", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": { "categories_name_unique": { "name": "categories_name_unique", "nullsNotDistinct": false, "columns": [ "name" ] }, "categories_slug_unique": { "name": "categories_slug_unique", "nullsNotDistinct": false, "columns": [ "slug" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.claims": { "name": "claims", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "app_id": { "name": "app_id", "type": "text", "primaryKey": false, "notNull": true }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "user_name": { "name": "user_name", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "title": { "name": "title", "type": "varchar(255)", "primaryKey": false, "notNull": false }, "user_email": { "name": "user_email", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "app_name": { "name": "app_name", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "app_slug": { "name": "app_slug", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "reason": { "name": "reason", "type": "text", "primaryKey": false, "notNull": false }, "app_type": { "name": "app_type", "type": "varchar(20)", "primaryKey": false, "notNull": true }, "app_icon": { "name": "app_icon", "type": "text", "primaryKey": false, "notNull": false }, "proof_url": { "name": "proof_url", "type": "text", "primaryKey": false, "notNull": true }, "proof_type": { "name": "proof_type", "type": "varchar(20)", "primaryKey": false, "notNull": true }, "additional_info": { "name": "additional_info", "type": "text", "primaryKey": false, "notNull": false }, "status": { "name": "status", "type": "varchar(20)", "primaryKey": false, "notNull": true, "default": "'pending'" }, "reviewed_at": { "name": "reviewed_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "reviewed_by": { "name": "reviewed_by", "type": "text", "primaryKey": false, "notNull": false }, "updated_by": { "name": "updated_by", "type": "text", "primaryKey": false, "notNull": false }, "review_notes": { "name": "review_notes", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "ownership_requests_app_id_idx": { "name": "ownership_requests_app_id_idx", "columns": [ { "expression": "app_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "ownership_requests_user_id_idx": { "name": "ownership_requests_user_id_idx", "columns": [ { "expression": "user_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "ownership_requests_status_idx": { "name": "ownership_requests_status_idx", "columns": [ { "expression": "status", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.email_subscriptions": { "name": "email_subscriptions", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": false }, "email": { "name": "email", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "varchar(255)", "primaryKey": false, "notNull": false }, "referring_site": { "name": "referring_site", "type": "varchar(255)", "primaryKey": false, "notNull": false }, "utm_source": { "name": "utm_source", "type": "varchar(255)", "primaryKey": false, "notNull": false, "default": "'openmcp'" }, "utm_campaign": { "name": "utm_campaign", "type": "varchar", "primaryKey": false, "notNull": false, "default": "'organic'" }, "preferences": { "name": "preferences", "type": "jsonb", "primaryKey": false, "notNull": false, "default": "'{}'::jsonb" }, "is_verified": { "name": "is_verified", "type": "boolean", "primaryKey": false, "notNull": false, "default": false }, "verification_token": { "name": "verification_token", "type": "text", "primaryKey": false, "notNull": false }, "verification_expires": { "name": "verification_expires", "type": "timestamp", "primaryKey": false, "notNull": false }, "last_email_sent": { "name": "last_email_sent", "type": "timestamp", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "email_subscriptions_user_id_idx": { "name": "email_subscriptions_user_id_idx", "columns": [ { "expression": "user_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "email_subscriptions_email_idx": { "name": "email_subscriptions_email_idx", "columns": [ { "expression": "email", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": { "email_subscriptions_email_unique": { "name": "email_subscriptions_email_unique", "nullsNotDistinct": false, "columns": [ "email" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.invoices": { "name": "invoices", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "payment_id": { "name": "payment_id", "type": "text", "primaryKey": false, "notNull": true }, "type": { "name": "type", "type": "varchar(20)", "primaryKey": false, "notNull": true }, "title": { "name": "title", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "tax_number": { "name": "tax_number", "type": "varchar(255)", "primaryKey": false, "notNull": false }, "address": { "name": "address", "type": "text", "primaryKey": false, "notNull": false }, "email": { "name": "email", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "status": { "name": "status", "type": "varchar(20)", "primaryKey": false, "notNull": true, "default": "'pending'" }, "issued_at": { "name": "issued_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "sent_at": { "name": "sent_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "invoices_user_id_idx": { "name": "invoices_user_id_idx", "columns": [ { "expression": "user_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "invoices_payment_id_idx": { "name": "invoices_payment_id_idx", "columns": [ { "expression": "payment_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "invoices_status_idx": { "name": "invoices_status_idx", "columns": [ { "expression": "status", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.payments": { "name": "payments", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "type": { "name": "type", "type": "varchar(20)", "primaryKey": false, "notNull": true }, "related_id": { "name": "related_id", "type": "text", "primaryKey": false, "notNull": false }, "amount": { "name": "amount", "type": "real", "primaryKey": false, "notNull": true }, "currency": { "name": "currency", "type": "varchar(10)", "primaryKey": false, "notNull": false, "default": "'CNY'" }, "method": { "name": "method", "type": "varchar(20)", "primaryKey": false, "notNull": true }, "status": { "name": "status", "type": "varchar(20)", "primaryKey": false, "notNull": true, "default": "'pending'" }, "transaction_id": { "name": "transaction_id", "type": "text", "primaryKey": false, "notNull": false }, "invoice_number": { "name": "invoice_number", "type": "text", "primaryKey": false, "notNull": false }, "completed_at": { "name": "completed_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "refunded_at": { "name": "refunded_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "refund_reason": { "name": "refund_reason", "type": "text", "primaryKey": false, "notNull": false }, "metadata": { "name": "metadata", "type": "jsonb", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "payments_user_id_idx": { "name": "payments_user_id_idx", "columns": [ { "expression": "user_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "payments_status_idx": { "name": "payments_status_idx", "columns": [ { "expression": "status", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "payments_type_idx": { "name": "payments_type_idx", "columns": [ { "expression": "type", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.recommendation_apps": { "name": "recommendation_apps", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "recommendation_id": { "name": "recommendation_id", "type": "text", "primaryKey": false, "notNull": true }, "app_id": { "name": "app_id", "type": "text", "primaryKey": false, "notNull": true }, "order": { "name": "order", "type": "integer", "primaryKey": false, "notNull": true, "default": 0 }, "status": { "name": "status", "type": "varchar(20)", "primaryKey": false, "notNull": true, "default": "'pending'" }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "recommendation_apps_app_id_idx": { "name": "recommendation_apps_app_id_idx", "columns": [ { "expression": "app_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "recommendation_apps_unique_idx": { "name": "recommendation_apps_unique_idx", "columns": [ { "expression": "recommendation_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "app_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.recommendations": { "name": "recommendations", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "category_id": { "name": "category_id", "type": "text", "primaryKey": false, "notNull": false }, "app_id": { "name": "app_id", "type": "text", "primaryKey": false, "notNull": false }, "type": { "name": "type", "type": "varchar(20)", "primaryKey": false, "notNull": true }, "title": { "name": "title", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "app_count": { "name": "app_count", "type": "integer", "primaryKey": false, "notNull": true, "default": 0 }, "status": { "name": "status", "type": "varchar(20)", "primaryKey": false, "notNull": true, "default": "'pending'" }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "recommendations_type_idx": { "name": "recommendations_type_idx", "columns": [ { "expression": "type", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.related_apps": { "name": "related_apps", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "app_id": { "name": "app_id", "type": "text", "primaryKey": false, "notNull": true }, "type": { "name": "type", "type": "varchar(20)", "primaryKey": false, "notNull": true, "default": "'related'" }, "related_app_id": { "name": "related_app_id", "type": "text", "primaryKey": false, "notNull": true }, "similarity": { "name": "similarity", "type": "real", "primaryKey": false, "notNull": false, "default": 0 }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "related_apps_app_id_idx": { "name": "related_apps_app_id_idx", "columns": [ { "expression": "app_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "related_apps_related_app_id_idx": { "name": "related_apps_related_app_id_idx", "columns": [ { "expression": "related_app_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "related_apps_unique_idx": { "name": "related_apps_unique_idx", "columns": [ { "expression": "app_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "related_app_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.rss_items": { "name": "rss_items", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "rss_id": { "name": "rss_id", "type": "text", "primaryKey": false, "notNull": true }, "title": { "name": "title", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": false }, "content": { "name": "content", "type": "text", "primaryKey": false, "notNull": false }, "link": { "name": "link", "type": "text", "primaryKey": false, "notNull": true }, "guid": { "name": "guid", "type": "text", "primaryKey": false, "notNull": true }, "pub_date": { "name": "pub_date", "type": "timestamp", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "rss_items_rss_id_idx": { "name": "rss_items_rss_id_idx", "columns": [ { "expression": "rss_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "rss_items_pub_date_idx": { "name": "rss_items_pub_date_idx", "columns": [ { "expression": "pub_date", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "rss_items_guid_idx": { "name": "rss_items_guid_idx", "columns": [ { "expression": "guid", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.suggestions": { "name": "suggestions", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "app_id": { "name": "app_id", "type": "text", "primaryKey": false, "notNull": true }, "app_name": { "name": "app_name", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "app_slug": { "name": "app_slug", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "app_type": { "name": "app_type", "type": "varchar(20)", "primaryKey": false, "notNull": true }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "user_name": { "name": "user_name", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "user_email": { "name": "user_email", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "title": { "name": "title", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": true }, "type": { "name": "type", "type": "varchar(20)", "primaryKey": false, "notNull": true }, "status": { "name": "status", "type": "varchar(20)", "primaryKey": false, "notNull": true, "default": "'pending'" }, "upvotes": { "name": "upvotes", "type": "integer", "primaryKey": false, "notNull": false, "default": 0 }, "priority": { "name": "priority", "type": "varchar(20)", "primaryKey": false, "notNull": false }, "reproducible": { "name": "reproducible", "type": "boolean", "primaryKey": false, "notNull": false }, "steps_to_reproduce": { "name": "steps_to_reproduce", "type": "text", "primaryKey": false, "notNull": false }, "expected_behavior": { "name": "expected_behavior", "type": "text", "primaryKey": false, "notNull": false }, "actual_behavior": { "name": "actual_behavior", "type": "text", "primaryKey": false, "notNull": false }, "attachment_url": { "name": "attachment_url", "type": "text", "primaryKey": false, "notNull": false }, "response_text": { "name": "response_text", "type": "text", "primaryKey": false, "notNull": false }, "response_user_id": { "name": "response_user_id", "type": "text", "primaryKey": false, "notNull": false }, "response_user_name": { "name": "response_user_name", "type": "varchar(255)", "primaryKey": false, "notNull": false }, "response_at": { "name": "response_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "implemented_at": { "name": "implemented_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "image_url": { "name": "image_url", "type": "text", "primaryKey": false, "notNull": false }, "admin_remarks": { "name": "admin_remarks", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "suggestions_app_id_idx": { "name": "suggestions_app_id_idx", "columns": [ { "expression": "app_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "suggestions_user_id_idx": { "name": "suggestions_user_id_idx", "columns": [ { "expression": "user_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "suggestions_status_idx": { "name": "suggestions_status_idx", "columns": [ { "expression": "status", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.tags": { "name": "tags", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "name": { "name": "name", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "source": { "name": "source", "type": "varchar(20)", "primaryKey": false, "notNull": true }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": false }, "type": { "name": "type", "type": "varchar(20)", "primaryKey": false, "notNull": false, "default": "'all'" }, "total_apps": { "name": "total_apps", "type": "integer", "primaryKey": false, "notNull": false, "default": 0 }, "deleted": { "name": "deleted", "type": "boolean", "primaryKey": false, "notNull": false, "default": false }, "slug": { "name": "slug", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "created_by": { "name": "created_by", "type": "text", "primaryKey": false, "notNull": false }, "deleted_by": { "name": "deleted_by", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "tags_slug_idx": { "name": "tags_slug_idx", "columns": [ { "expression": "slug", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": { "tags_name_unique": { "name": "tags_name_unique", "nullsNotDistinct": false, "columns": [ "name" ] }, "tags_slug_unique": { "name": "tags_slug_unique", "nullsNotDistinct": false, "columns": [ "slug" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false } }, "enums": {}, "schemas": {}, "sequences": {}, "roles": {}, "policies": {}, "views": {}, "_meta": { "columns": {}, "schemas": {}, "tables": {} } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/metacode0602/open-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server