{
  "id": "dc913f26-9555-42c9-9477-e5eeb5f39a01",
  "prevId": "00000000-0000-0000-0000-000000000000",
  "version": "7",
  "dialect": "postgresql",
  "tables": {
    "public.achievements": {
      "name": "achievements",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "icon": {
          "name": "icon",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "points_reward": {
          "name": "points_reward",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "badge_color": {
          "name": "badge_color",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "rarity": {
          "name": "rarity",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "xp_reward": {
          "name": "xp_reward",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "category": {
          "name": "category",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true,
          "default": "'milestone'"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "achievements_name_unique": {
          "name": "achievements_name_unique",
          "nullsNotDistinct": false,
          "columns": [
            "name"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.aethex_alerts": {
      "name": "aethex_alerts",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true
        },
        "site_id": {
          "name": "site_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "type": {
          "name": "type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "severity": {
          "name": "severity",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "message": {
          "name": "message",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "is_resolved": {
          "name": "is_resolved",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "default": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        },
        "resolved_at": {
          "name": "resolved_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.aethex_applications": {
      "name": "aethex_applications",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true
        },
        "creator_id": {
          "name": "creator_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "opportunity_id": {
          "name": "opportunity_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "default": "'submitted'"
        },
        "cover_letter": {
          "name": "cover_letter",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "response_message": {
          "name": "response_message",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "applied_at": {
          "name": "applied_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.aethex_creators": {
      "name": "aethex_creators",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "username": {
          "name": "username",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "bio": {
          "name": "bio",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "skills": {
          "name": "skills",
          "type": "json",
          "primaryKey": false,
          "notNull": false,
          "default": "'[]'::json"
        },
        "avatar_url": {
          "name": "avatar_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "experience_level": {
          "name": "experience_level",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "arm_affiliations": {
          "name": "arm_affiliations",
          "type": "json",
          "primaryKey": false,
          "notNull": false,
          "default": "'[]'::json"
        },
        "primary_arm": {
          "name": "primary_arm",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "is_discoverable": {
          "name": "is_discoverable",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "default": true
        },
        "allow_recommendations": {
          "name": "allow_recommendations",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "default": true
        },
        "devconnect_linked": {
          "name": "devconnect_linked",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "default": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "aethex_creators_username_unique": {
          "name": "aethex_creators_username_unique",
          "nullsNotDistinct": false,
          "columns": [
            "username"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.aethex_events": {
      "name": "aethex_events",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true
        },
        "site_id": {
          "name": "site_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "title": {
          "name": "title",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "date": {
          "name": "date",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true
        },
        "time": {
          "name": "time",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "location": {
          "name": "location",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "capacity": {
          "name": "capacity",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "image_url": {
          "name": "image_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "category": {
          "name": "category",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "price": {
          "name": "price",
          "type": "numeric",
          "primaryKey": false,
          "notNull": false
        },
        "featured": {
          "name": "featured",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "speakers": {
          "name": "speakers",
          "type": "json",
          "primaryKey": false,
          "notNull": false
        },
        "agenda": {
          "name": "agenda",
          "type": "json",
          "primaryKey": false,
          "notNull": false
        },
        "full_description": {
          "name": "full_description",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "map_url": {
          "name": "map_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "ticket_types": {
          "name": "ticket_types",
          "type": "json",
          "primaryKey": false,
          "notNull": false
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.aethex_opportunities": {
      "name": "aethex_opportunities",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true
        },
        "title": {
          "name": "title",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "job_type": {
          "name": "job_type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "salary_min": {
          "name": "salary_min",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "salary_max": {
          "name": "salary_max",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "experience_level": {
          "name": "experience_level",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "arm_affiliation": {
          "name": "arm_affiliation",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "posted_by_id": {
          "name": "posted_by_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "default": "'open'"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.aethex_passports": {
      "name": "aethex_passports",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "aethex_passports_user_id_unique": {
          "name": "aethex_passports_user_id_unique",
          "nullsNotDistinct": false,
          "columns": [
            "user_id"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.aethex_projects": {
      "name": "aethex_projects",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true
        },
        "creator_id": {
          "name": "creator_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "title": {
          "name": "title",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "url": {
          "name": "url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "image_url": {
          "name": "image_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "tags": {
          "name": "tags",
          "type": "json",
          "primaryKey": false,
          "notNull": false,
          "default": "'[]'::json"
        },
        "is_featured": {
          "name": "is_featured",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "default": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.aethex_sites": {
      "name": "aethex_sites",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "url": {
          "name": "url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "uptime": {
          "name": "uptime",
          "type": "numeric",
          "primaryKey": false,
          "notNull": false
        },
        "response_time": {
          "name": "response_time",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "users": {
          "name": "users",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "requests": {
          "name": "requests",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "last_check": {
          "name": "last_check",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "services": {
          "name": "services",
          "type": "json",
          "primaryKey": false,
          "notNull": false
        },
        "metrics": {
          "name": "metrics",
          "type": "json",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        },
        "metrics_history": {
          "name": "metrics_history",
          "type": "json",
          "primaryKey": false,
          "notNull": false
        },
        "owner_id": {
          "name": "owner_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "api_key_hash": {
          "name": "api_key_hash",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "handshake_token": {
          "name": "handshake_token",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "handshake_token_expires_at": {
          "name": "handshake_token_expires_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "aethex_sites_name_unique": {
          "name": "aethex_sites_name_unique",
          "nullsNotDistinct": false,
          "columns": [
            "name"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.applications": {
      "name": "applications",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true
        },
        "type": {
          "name": "type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "full_name": {
          "name": "full_name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "email": {
          "name": "email",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "location": {
          "name": "location",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "role_interest": {
          "name": "role_interest",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "primary_skill": {
          "name": "primary_skill",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "experience_level": {
          "name": "experience_level",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "availability": {
          "name": "availability",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "portfolio_url": {
          "name": "portfolio_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "resume_url": {
          "name": "resume_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "interests": {
          "name": "interests",
          "type": "json",
          "primaryKey": false,
          "notNull": false
        },
        "message": {
          "name": "message",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'new'"
        },
        "submitted_at": {
          "name": "submitted_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.chat_messages": {
      "name": "chat_messages",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "role": {
          "name": "role",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "content": {
          "name": "content",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.profiles": {
      "name": "profiles",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true
        },
        "username": {
          "name": "username",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "role": {
          "name": "role",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "default": "'member'"
        },
        "onboarded": {
          "name": "onboarded",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "default": false
        },
        "bio": {
          "name": "bio",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "skills": {
          "name": "skills",
          "type": "json",
          "primaryKey": false,
          "notNull": false
        },
        "avatar_url": {
          "name": "avatar_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "banner_url": {
          "name": "banner_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "social_links": {
          "name": "social_links",
          "type": "json",
          "primaryKey": false,
          "notNull": false
        },
        "loyalty_points": {
          "name": "loyalty_points",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "email": {
          "name": "email",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        },
        "user_type": {
          "name": "user_type",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "default": "'community_member'"
        },
        "experience_level": {
          "name": "experience_level",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "default": "'beginner'"
        },
        "full_name": {
          "name": "full_name",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "location": {
          "name": "location",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "total_xp": {
          "name": "total_xp",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "level": {
          "name": "level",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 1
        },
        "aethex_passport_id": {
          "name": "aethex_passport_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "default": "'offline'"
        },
        "is_verified": {
          "name": "is_verified",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "default": false
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.projects": {
      "name": "projects",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true
        },
        "owner_id": {
          "name": "owner_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "title": {
          "name": "title",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "default": "'planning'"
        },
        "github_url": {
          "name": "github_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "engine": {
          "name": "engine",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "priority": {
          "name": "priority",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "default": "'medium'"
        },
        "progress": {
          "name": "progress",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "live_url": {
          "name": "live_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "technologies": {
          "name": "technologies",
          "type": "json",
          "primaryKey": false,
          "notNull": false
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.user_achievements": {
      "name": "user_achievements",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "achievement_id": {
          "name": "achievement_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "site_id": {
          "name": "site_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        },
        "unlocked_at": {
          "name": "unlocked_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        },
        "earned_at": {
          "name": "earned_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.user_profiles": {
      "name": "user_profiles",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true
        },
        "username": {
          "name": "username",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "full_name": {
          "name": "full_name",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "avatar_url": {
          "name": "avatar_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "user_type": {
          "name": "user_type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "experience_level": {
          "name": "experience_level",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "default": "'beginner'"
        },
        "bio": {
          "name": "bio",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "location": {
          "name": "location",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "website_url": {
          "name": "website_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "github_url": {
          "name": "github_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "twitter_url": {
          "name": "twitter_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "linkedin_url": {
          "name": "linkedin_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "total_xp": {
          "name": "total_xp",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "level": {
          "name": "level",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 1
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        },
        "current_streak": {
          "name": "current_streak",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "longest_streak": {
          "name": "longest_streak",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "last_streak_at": {
          "name": "last_streak_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "loyalty_points": {
          "name": "loyalty_points",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "reputation_score": {
          "name": "reputation_score",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "wallet_address": {
          "name": "wallet_address",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "show_in_creator_directory": {
          "name": "show_in_creator_directory",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "default": false
        },
        "arms": {
          "name": "arms",
          "type": "json",
          "primaryKey": false,
          "notNull": false,
          "default": "'[]'::json"
        },
        "roles": {
          "name": "roles",
          "type": "json",
          "primaryKey": false,
          "notNull": false,
          "default": "'[]'::json"
        },
        "last_active_at": {
          "name": "last_active_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        },
        "streak_days": {
          "name": "streak_days",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "roblox_user_id": {
          "name": "roblox_user_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "roblox_username": {
          "name": "roblox_username",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "unity_player_id": {
          "name": "unity_player_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "unreal_player_id": {
          "name": "unreal_player_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "godot_player_id": {
          "name": "godot_player_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "merged_to_user_id": {
          "name": "merged_to_user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "aethex_domain": {
          "name": "aethex_domain",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "discord_id": {
          "name": "discord_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "discord_username": {
          "name": "discord_username",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "is_architect": {
          "name": "is_architect",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "default": false
        },
        "xp": {
          "name": "xp",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "daily_streak": {
          "name": "daily_streak",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "last_daily": {
          "name": "last_daily",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "last_xp_message": {
          "name": "last_xp_message",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "badges": {
          "name": "badges",
          "type": "json",
          "primaryKey": false,
          "notNull": false,
          "default": "'[]'::json"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "user_profiles_username_unique": {
          "name": "user_profiles_username_unique",
          "nullsNotDistinct": false,
          "columns": [
            "username"
          ]
        },
        "user_profiles_wallet_address_unique": {
          "name": "user_profiles_wallet_address_unique",
          "nullsNotDistinct": false,
          "columns": [
            "wallet_address"
          ]
        },
        "user_profiles_roblox_user_id_unique": {
          "name": "user_profiles_roblox_user_id_unique",
          "nullsNotDistinct": false,
          "columns": [
            "roblox_user_id"
          ]
        },
        "user_profiles_unity_player_id_unique": {
          "name": "user_profiles_unity_player_id_unique",
          "nullsNotDistinct": false,
          "columns": [
            "unity_player_id"
          ]
        },
        "user_profiles_unreal_player_id_unique": {
          "name": "user_profiles_unreal_player_id_unique",
          "nullsNotDistinct": false,
          "columns": [
            "unreal_player_id"
          ]
        },
        "user_profiles_godot_player_id_unique": {
          "name": "user_profiles_godot_player_id_unique",
          "nullsNotDistinct": false,
          "columns": [
            "godot_player_id"
          ]
        },
        "user_profiles_discord_id_unique": {
          "name": "user_profiles_discord_id_unique",
          "nullsNotDistinct": false,
          "columns": [
            "discord_id"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    }
  },
  "enums": {},
  "schemas": {},
  "sequences": {},
  "roles": {},
  "policies": {},
  "views": {},
  "_meta": {
    "columns": {},
    "schemas": {},
    "tables": {}
  }
}