使用PostgreSQL连接字符串连接数据库... 成功连接到数据库 获取所有表... 找到以下表: - ProjectTeams - attribute_schemas - channel - channel_tag - favorite - form_field_metadata - google_token - materials - permission_resources - permissions - platform_tokens - project_resources - projects - qr_code - queue_tasks - resource_tags - resources - roles - slide_presentations - subscription - sync_resource_typesense_queue - tags - team_invitation - team_join_request - team_membership - team_projects - teams - type_order - user_projects - users 所有PostgreSQL表: ProjectTeams, attribute_schemas, channel, channel_tag, favorite, form_field_metadata, google_token, materials, permission_resources, permissions, platform_tokens, project_resources, projects, qr_code, queue_tasks, resource_tags, resources, roles, slide_presentations, subscription, sync_resource_typesense_queue, tags, team_invitation, team_join_request, team_membership, team_projects, teams, type_order, user_projects, users 获取表 ProjectTeams 的结构... 表 ProjectTeams 的列: - A (uuid, 不可为空, 默认值: NULL) - B (uuid, 不可为空, 默认值: NULL) 主键: 无 外键: - A -> projects.id 索引: 无 获取表 attribute_schemas 的结构... 表 attribute_schemas 的列: - version (integer(32,0), 可为空, 默认值: NULL) - id (uuid, 不可为空, 默认值: gen_random_uuid()) - entity_type (text, 可为空, 默认值: NULL) - schema (jsonb, 可为空, 默认值: NULL) - updated_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - created_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - is_active (boolean, 可为空, 默认值: NULL) 主键: id 外键: 无 索引: 无 获取表 channel 的结构... 表 channel 的列: - name (text, 不可为空, 默认值: NULL) - path (text, 不可为空, 默认值: NULL) - shortUrlId (uuid, 可为空, 默认值: NULL) - qrCodeId (uuid, 可为空, 默认值: NULL) - id (uuid, 不可为空, 默认值: gen_random_uuid()) - isUserCreated (boolean, 可为空, 默认值: false) 主键: id 外键: - qrCodeId -> qr_code.id - shortUrlId -> resources.id 索引: 无 获取表 channel_tag 的结构... 表 channel_tag 的列: - channelId (uuid, 不可为空, 默认值: NULL) - tagId (uuid, 不可为空, 默认值: NULL) - id (uuid, 不可为空, 默认值: gen_random_uuid()) 主键: id 外键: - channelId -> channel.id - tagId -> tags.id 索引: 无 获取表 favorite 的结构... 表 favorite 的列: - id (uuid, 不可为空, 默认值: gen_random_uuid()) - user_id (uuid, 不可为空, 默认值: NULL) - favoritable_id (uuid, 不可为空, 默认值: NULL) - favoritable_type (text, 不可为空, 默认值: NULL) - created_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - updated_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - deleted_at (timestamp with time zone, 可为空, 默认值: NULL) 主键: id 外键: 无 索引: 无 获取表 form_field_metadata 的结构... 表 form_field_metadata 的列: - field_name (text, 可为空, 默认值: NULL) - resource_type (text, 可为空, 默认值: NULL) - id (uuid, 不可为空, 默认值: gen_random_uuid()) - default_value (jsonb, 可为空, 默认值: NULL) - options (jsonb, 可为空, 默认值: NULL) - validation_rules (jsonb, 可为空, 默认值: NULL) - is_required (boolean, 可为空, 默认值: NULL) - order_index (integer(32,0), 可为空, 默认值: NULL) - is_visible (boolean, 可为空, 默认值: NULL) - created_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - updated_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - placeholder (text, 可为空, 默认值: NULL) - label (text, 可为空, 默认值: NULL) - field_type (text, 可为空, 默认值: NULL) 主键: id 外键: 无 索引: 无 获取表 google_token 的结构... 表 google_token 的列: - id (text, 不可为空, 默认值: NULL) - googleEmail (text, 不可为空, 默认值: NULL) - created_at (timestamp without time zone, 不可为空, 默认值: CURRENT_TIMESTAMP) - updated_at (timestamp without time zone, 不可为空, 默认值: CURRENT_TIMESTAMP) - profile_data (jsonb, 可为空, 默认值: NULL) - tokens (jsonb, 不可为空, 默认值: NULL) - user_id (uuid, 不可为空, 默认值: NULL) 主键: id 外键: - user_id -> users.id 索引: 无 获取表 materials 的结构... 表 materials 的列: - id (uuid, 不可为空, 默认值: gen_random_uuid()) - name (text, 不可为空, 默认值: NULL) - description (text, 可为空, 默认值: ''::text) - attributes (jsonb, 可为空, 默认值: '{}'::jsonb) - created_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - updated_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - deleted_at (timestamp with time zone, 可为空, 默认值: NULL) - schema_version (integer(32,0), 可为空, 默认值: 1) - type (text, 不可为空, 默认值: NULL) - is_active (boolean, 可为空, 默认值: true) - is_system (boolean, 可为空, 默认值: false) - team_id (uuid, 可为空, 默认值: NULL) - creator_id (uuid, 可为空, 默认值: NULL) 主键: id 外键: 无 索引: 无 获取表 permission_resources 的结构... 表 permission_resources 的列: - id (uuid, 不可为空, 默认值: gen_random_uuid()) - created_at (timestamp with time zone, 可为空, 默认值: now()) - updated_at (timestamp with time zone, 可为空, 默认值: now()) - resource_type (USER-DEFINED, 可为空, 默认值: NULL) - resource_name (text, 不可为空, 默认值: NULL) - attributes_type (text, 可为空, 默认值: NULL) - description (text, 可为空, 默认值: NULL) 主键: id 外键: 无 索引: 无 获取表 permissions 的结构... 表 permissions 的列: - id (uuid, 不可为空, 默认值: gen_random_uuid()) - created_at (timestamp with time zone, 可为空, 默认值: now()) - updated_at (timestamp with time zone, 可为空, 默认值: now()) - role_id (uuid, 不可为空, 默认值: NULL) - resource_id (uuid, 不可为空, 默认值: NULL) - action (USER-DEFINED, 不可为空, 默认值: NULL) - metadata (jsonb, 可为空, 默认值: NULL) 主键: id 外键: - resource_id -> permission_resources.id - role_id -> roles.id 索引: 无 获取表 platform_tokens 的结构... 表 platform_tokens 的列: - id (uuid, 不可为空, 默认值: gen_random_uuid()) - user_id (uuid, 不可为空, 默认值: NULL) - platform (text, 不可为空, 默认值: NULL) - access_token (text, 不可为空, 默认值: NULL) - refresh_token (text, 可为空, 默认值: NULL) - expires_at (timestamp with time zone, 可为空, 默认值: NULL) - token_type (text, 可为空, 默认值: NULL) - scope (text, 可为空, 默认值: NULL) - created_at (timestamp with time zone, 不可为空, 默认值: CURRENT_TIMESTAMP) - updated_at (timestamp with time zone, 不可为空, 默认值: CURRENT_TIMESTAMP) - metadata (jsonb, 可为空, 默认值: NULL) 主键: id 外键: - user_id -> users.id 索引: 无 获取表 project_resources 的结构... 表 project_resources 的列: - project_id (uuid, 不可为空, 默认值: NULL) - resource_id (uuid, 不可为空, 默认值: NULL) - assigned_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) 主键: project_id, resource_id 外键: - project_id -> projects.id - resource_id -> resources.id 索引: 无 获取表 projects 的结构... 表 projects 的列: - id (uuid, 不可为空, 默认值: gen_random_uuid()) - name (text, 不可为空, 默认值: NULL) - description (text, 可为空, 默认值: NULL) - attributes (jsonb, 可为空, 默认值: NULL) - created_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - updated_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - deleted_at (timestamp with time zone, 可为空, 默认值: NULL) - schema_version (integer(32,0), 可为空, 默认值: NULL) - creator_id (uuid, 可为空, 默认值: NULL) 主键: id 外键: 无 索引: 无 获取表 qr_code 的结构... 表 qr_code 的列: - scan_count (integer(32,0), 不可为空, 默认值: 0) - url (text, 不可为空, 默认值: NULL) - options (jsonb, 可为空, 默认值: NULL) - template_id (text, 可为空, 默认值: NULL) - msg_template_id (text, 可为空, 默认值: NULL) - template_name (text, 可为空, 默认值: NULL) - attributes (jsonb, 可为空, 默认值: NULL) - created_at (timestamp without time zone, 不可为空, 默认值: CURRENT_TIMESTAMP) - updated_at (timestamp without time zone, 不可为空, 默认值: NULL) - deleted_at (timestamp without time zone, 可为空, 默认值: NULL) - resource_id (uuid, 可为空, 默认值: NULL) - id (uuid, 不可为空, 默认值: gen_random_uuid()) 主键: id 外键: - resource_id -> resources.id 索引: 无 获取表 queue_tasks 的结构... 表 queue_tasks 的列: - id (uuid, 不可为空, 默认值: gen_random_uuid()) - task_id (text, 不可为空, 默认值: NULL) - type (text, 不可为空, 默认值: NULL) - status (text, 不可为空, 默认值: NULL) - data (jsonb, 可为空, 默认值: NULL) - result (jsonb, 可为空, 默认值: NULL) - error (text, 可为空, 默认值: NULL) - created_at (timestamp with time zone, 不可为空, 默认值: CURRENT_TIMESTAMP) - updated_at (timestamp with time zone, 不可为空, 默认值: CURRENT_TIMESTAMP) - started_at (timestamp with time zone, 可为空, 默认值: NULL) - finished_at (timestamp with time zone, 可为空, 默认值: NULL) - creator_id (uuid, 可为空, 默认值: NULL) 主键: id 外键: - creator_id -> users.id 索引: 无 获取表 resource_tags 的结构... 表 resource_tags 的列: - id (uuid, 不可为空, 默认值: gen_random_uuid()) - tag_id (uuid, 不可为空, 默认值: NULL) - created_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - resource_id (uuid, 不可为空, 默认值: NULL) 主键: id 外键: - resource_id -> resources.id - tag_id -> tags.id 索引: 无 获取表 resources 的结构... 表 resources 的列: - created_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - updated_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - deleted_at (timestamp with time zone, 可为空, 默认值: NULL) - schema_version (integer(32,0), 可为空, 默认值: NULL) - id (uuid, 不可为空, 默认值: gen_random_uuid()) - external_id (text, 可为空, 默认值: NULL) - attributes (jsonb, 可为空, 默认值: NULL) - type (text, 可为空, 默认值: NULL) - creator_id (uuid, 可为空, 默认值: NULL) 主键: id 外键: - creator_id -> users.id 索引: 无 获取表 roles 的结构... 表 roles 的列: - id (uuid, 不可为空, 默认值: gen_random_uuid()) - created_at (timestamp with time zone, 可为空, 默认值: now()) - updated_at (timestamp with time zone, 可为空, 默认值: now()) - name (text, 不可为空, 默认值: NULL) - description (text, 可为空, 默认值: NULL) 主键: id 外键: 无 索引: 无 获取表 slide_presentations 的结构... 表 slide_presentations 的列: - id (uuid, 不可为空, 默认值: gen_random_uuid()) - slide_id (text, 不可为空, 默认值: NULL) - user_id (uuid, 不可为空, 默认值: NULL) - content (jsonb, 不可为空, 默认值: NULL) - created_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - updated_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - deleted_at (timestamp with time zone, 可为空, 默认值: NULL) 主键: id 外键: - user_id -> users.id 索引: 无 获取表 subscription 的结构... 表 subscription 的列: - id (text, 不可为空, 默认值: NULL) - team_id (uuid, 不可为空, 默认值: NULL) - customer_id (text, 不可为空, 默认值: NULL) - status (USER-DEFINED, 不可为空, 默认值: NULL) - plan_id (text, 不可为空, 默认值: NULL) - variant_id (text, 不可为空, 默认值: NULL) - next_payment_date (timestamp without time zone, 可为空, 默认值: NULL) 主键: id 外键: 无 索引: 无 获取表 sync_resource_typesense_queue 的结构... 表 sync_resource_typesense_queue 的列: - id (uuid, 不可为空, 默认值: gen_random_uuid()) - resource_id (uuid, 不可为空, 默认值: NULL) - entity_type (text, 不可为空, 默认值: NULL) - action (text, 不可为空, 默认值: NULL) - status (text, 不可为空, 默认值: NULL) - error (text, 可为空, 默认值: NULL) - created_at (timestamp with time zone, 不可为空, 默认值: CURRENT_TIMESTAMP) - updated_at (timestamp with time zone, 不可为空, 默认值: CURRENT_TIMESTAMP) - processed_at (timestamp with time zone, 可为空, 默认值: NULL) 主键: id 外键: - resource_id -> resources.id 索引: 无 获取表 tags 的结构... 表 tags 的列: - id (uuid, 不可为空, 默认值: gen_random_uuid()) - name (text, 可为空, 默认值: NULL) - type (text, 可为空, 默认值: NULL) - attributes (jsonb, 可为空, 默认值: NULL) - created_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - updated_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - deleted_at (timestamp with time zone, 可为空, 默认值: NULL) - parent_tag_id (uuid, 可为空, 默认值: NULL) - team_id (uuid, 可为空, 默认值: NULL) - is_shared (boolean, 可为空, 默认值: false) - schema_version (integer(32,0), 可为空, 默认值: NULL) - is_system (boolean, 可为空, 默认值: false) 主键: id 外键: - parent_tag_id -> tags.id 索引: 无 获取表 team_invitation 的结构... 表 team_invitation 的列: - id (text, 不可为空, 默认值: NULL) - team_id (uuid, 不可为空, 默认值: NULL) - email (text, 可为空, 默认值: NULL) - role (USER-DEFINED, 不可为空, 默认值: 'MEMBER'::limq.team_member_role) - created_at (timestamp without time zone, 不可为空, 默认值: CURRENT_TIMESTAMP) - expires_at (timestamp without time zone, 不可为空, 默认值: NULL) - type (text, 可为空, 默认值: NULL) - deleted_at (timestamp with time zone, 可为空, 默认值: NULL) - status (USER-DEFINED, 可为空, 默认值: NULL) 主键: id 外键: - team_id -> teams.id 索引: 无 获取表 team_join_request 的结构... 表 team_join_request 的列: - id (text, 不可为空, 默认值: NULL) - team_id (uuid, 不可为空, 默认值: NULL) - user_id (uuid, 不可为空, 默认值: NULL) - invitation_id (text, 不可为空, 默认值: NULL) - status (USER-DEFINED, 不可为空, 默认值: 'PENDING'::limq.request_status) - message (text, 可为空, 默认值: NULL) - created_at (timestamp with time zone, 不可为空, 默认值: CURRENT_TIMESTAMP) - updated_at (timestamp with time zone, 不可为空, 默认值: NULL) 主键: id 外键: - invitation_id -> team_invitation.id - user_id -> users.id 索引: 无 获取表 team_membership 的结构... 表 team_membership 的列: - id (text, 不可为空, 默认值: NULL) - team_id (uuid, 不可为空, 默认值: NULL) - user_id (uuid, 不可为空, 默认值: NULL) - is_creator (boolean, 不可为空, 默认值: false) - role (text, 不可为空, 默认值: NULL) 主键: id 外键: - team_id -> teams.id - user_id -> users.id 索引: 无 获取表 team_projects 的结构... 表 team_projects 的列: - team_id (uuid, 不可为空, 默认值: NULL) - project_id (uuid, 不可为空, 默认值: NULL) - assigned_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) 主键: team_id, project_id 外键: - project_id -> projects.id - team_id -> teams.id 索引: 无 获取表 teams 的结构... 表 teams 的列: - id (uuid, 不可为空, 默认值: gen_random_uuid()) - name (text, 不可为空, 默认值: NULL) - description (text, 可为空, 默认值: NULL) - attributes (jsonb, 可为空, 默认值: NULL) - created_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - updated_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - deleted_at (timestamp with time zone, 可为空, 默认值: NULL) - schema_version (integer(32,0), 可为空, 默认值: NULL) - avatar_url (text, 可为空, 默认值: NULL) 主键: id 外键: 无 索引: 无 获取表 type_order 的结构... 表 type_order 的列: - id (uuid, 不可为空, 默认值: gen_random_uuid()) - user_id (uuid, 不可为空, 默认值: NULL) - category (text, 不可为空, 默认值: NULL) - type (text, 不可为空, 默认值: NULL) - order (integer(32,0), 不可为空, 默认值: NULL) - created_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - updated_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) 主键: id 外键: - user_id -> users.id 索引: 无 获取表 user_projects 的结构... 表 user_projects 的列: - user_id (uuid, 不可为空, 默认值: NULL) - project_id (uuid, 不可为空, 默认值: NULL) - role (text, 可为空, 默认值: NULL) - joined_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) 主键: user_id, project_id 外键: - project_id -> projects.id - user_id -> users.id 索引: 无 获取表 users 的结构... 表 users 的列: - id (uuid, 不可为空, 默认值: gen_random_uuid()) - email (text, 不可为空, 默认值: NULL) - password_hash (text, 可为空, 默认值: NULL) - first_name (text, 可为空, 默认值: NULL) - last_name (text, 可为空, 默认值: NULL) - phone_number (text, 可为空, 默认值: NULL) - is_email_verified (boolean, 可为空, 默认值: NULL) - is_phone_verified (boolean, 可为空, 默认值: NULL) - last_login_at (timestamp with time zone, 可为空, 默认值: NULL) - attributes (jsonb, 可为空, 默认值: NULL) - external_id (text, 可为空, 默认值: NULL) - created_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - updated_at (timestamp with time zone, 可为空, 默认值: CURRENT_TIMESTAMP) - deleted_at (timestamp with time zone, 可为空, 默认值: NULL) - schema_version (integer(32,0), 可为空, 默认值: NULL) - avatar_url (text, 可为空, 默认值: NULL) 主键: id 外键: 无 索引: 无 数据库结构检查完成