init ana page with apis
This commit is contained in:
@@ -0,0 +1,225 @@
|
||||
|
||||
获取所有表...
|
||||
数据库 limq 中找到以下表:
|
||||
- .inner_id.5d9e5f95-ad7d-4750-ae56-bffea63e14fb
|
||||
- .inner_id.711eb652-7c90-4f9a-80a0-8979011080cc
|
||||
- .inner_id.abec445d-1704-4482-bc72-66c9eb67ecd1
|
||||
- .inner_id.c1eb844d-7f11-4cfc-8931-c433faaa16b0
|
||||
- .inner_id.f9640e70-5b7f-444c-80de-bc5b25848024
|
||||
- .inner_id.fe81eeba-acc5-4260-ac9a-973c2f9ce1ea
|
||||
- link_daily_stats
|
||||
- link_events
|
||||
- link_hourly_patterns
|
||||
- links
|
||||
- platform_distribution
|
||||
- project_daily_stats
|
||||
- projects
|
||||
- qr_scans
|
||||
- qrcode_daily_stats
|
||||
- qrcodes
|
||||
- sessions
|
||||
- team_daily_stats
|
||||
- team_members
|
||||
- teams
|
||||
|
||||
所有ClickHouse表:
|
||||
.inner_id.5d9e5f95-ad7d-4750-ae56-bffea63e14fb, .inner_id.711eb652-7c90-4f9a-80a0-8979011080cc, .inner_id.abec445d-1704-4482-bc72-66c9eb67ecd1, .inner_id.c1eb844d-7f11-4cfc-8931-c433faaa16b0, .inner_id.f9640e70-5b7f-444c-80de-bc5b25848024, .inner_id.fe81eeba-acc5-4260-ac9a-973c2f9ce1ea, link_daily_stats, link_events, link_hourly_patterns, links, platform_distribution, project_daily_stats, projects, qr_scans, qrcode_daily_stats, qrcodes, sessions, team_daily_stats, team_members, teams
|
||||
|
||||
获取表 .inner_id.5d9e5f95-ad7d-4750-ae56-bffea63e14fb 的结构...
|
||||
|
||||
获取表 .inner_id.711eb652-7c90-4f9a-80a0-8979011080cc 的结构...
|
||||
|
||||
获取表 .inner_id.abec445d-1704-4482-bc72-66c9eb67ecd1 的结构...
|
||||
|
||||
获取表 .inner_id.c1eb844d-7f11-4cfc-8931-c433faaa16b0 的结构...
|
||||
|
||||
获取表 .inner_id.f9640e70-5b7f-444c-80de-bc5b25848024 的结构...
|
||||
|
||||
获取表 .inner_id.fe81eeba-acc5-4260-ac9a-973c2f9ce1ea 的结构...
|
||||
|
||||
获取表 link_daily_stats 的结构...
|
||||
表 link_daily_stats 的列:
|
||||
- date (Date, 无默认值)
|
||||
- link_id (String, 无默认值)
|
||||
- total_clicks (UInt64, 无默认值)
|
||||
- unique_visitors (UInt64, 无默认值)
|
||||
- unique_sessions (UInt64, 无默认值)
|
||||
- total_time_spent (UInt64, 无默认值)
|
||||
- avg_time_spent (Float64, 无默认值)
|
||||
- bounce_count (UInt64, 无默认值)
|
||||
- conversion_count (UInt64, 无默认值)
|
||||
- unique_referrers (UInt64, 无默认值)
|
||||
- mobile_count (UInt64, 无默认值)
|
||||
- tablet_count (UInt64, 无默认值)
|
||||
- desktop_count (UInt64, 无默认值)
|
||||
- qr_scan_count (UInt64, 无默认值)
|
||||
- total_conversion_value (Float64, 无默认值)
|
||||
|
||||
获取表 link_events 的结构...
|
||||
表 link_events 的列:
|
||||
- event_id (UUID, 默认值: generateUUIDv4())
|
||||
- event_time (DateTime64(3), 默认值: now64())
|
||||
- date (Date, 默认值: toDate(event_time))
|
||||
- link_id (String, 无默认值)
|
||||
- channel_id (String, 无默认值)
|
||||
- visitor_id (String, 无默认值)
|
||||
- session_id (String, 无默认值)
|
||||
- event_type (Enum8('click' = 1, 'redirect' = 2, 'conversion' = 3, 'error' = 4), 无默认值)
|
||||
- ip_address (String, 无默认值)
|
||||
- country (String, 无默认值)
|
||||
- city (String, 无默认值)
|
||||
- referrer (String, 无默认值)
|
||||
- utm_source (String, 无默认值)
|
||||
- utm_medium (String, 无默认值)
|
||||
- utm_campaign (String, 无默认值)
|
||||
- user_agent (String, 无默认值)
|
||||
- device_type (Enum8('mobile' = 1, 'tablet' = 2, 'desktop' = 3, 'other' = 4), 无默认值)
|
||||
- browser (String, 无默认值)
|
||||
- os (String, 无默认值)
|
||||
- time_spent_sec (UInt32, 默认值: 0)
|
||||
- is_bounce (Bool, 默认值: true)
|
||||
- is_qr_scan (Bool, 默认值: false)
|
||||
- qr_code_id (String, 默认值: '')
|
||||
- conversion_type (Enum8('visit' = 1, 'stay' = 2, 'interact' = 3, 'signup' = 4, 'subscription' = 5, 'purchase' = 6), 默认值: 'visit')
|
||||
- conversion_value (Float64, 默认值: 0)
|
||||
- custom_data (String, 默认值: '{}')
|
||||
|
||||
获取表 link_hourly_patterns 的结构...
|
||||
表 link_hourly_patterns 的列:
|
||||
- date (Date, 无默认值)
|
||||
- hour (UInt8, 无默认值)
|
||||
- link_id (String, 无默认值)
|
||||
- visits (UInt64, 无默认值)
|
||||
- unique_visitors (UInt64, 无默认值)
|
||||
|
||||
获取表 links 的结构...
|
||||
表 links 的列:
|
||||
- link_id (String, 无默认值)
|
||||
- original_url (String, 无默认值)
|
||||
- created_at (DateTime64(3), 无默认值)
|
||||
- created_by (String, 无默认值)
|
||||
- title (String, 无默认值)
|
||||
- description (String, 无默认值)
|
||||
- tags (Array(String), 无默认值)
|
||||
- is_active (Bool, 默认值: true)
|
||||
- expires_at (Nullable(DateTime), 无默认值)
|
||||
- team_id (String, 默认值: '')
|
||||
- project_id (String, 默认值: '')
|
||||
|
||||
获取表 platform_distribution 的结构...
|
||||
表 platform_distribution 的列:
|
||||
- date (Date, 无默认值)
|
||||
- utm_source (String, 无默认值)
|
||||
- device_type (Enum8('mobile' = 1, 'tablet' = 2, 'desktop' = 3, 'other' = 4), 无默认值)
|
||||
- visits (UInt64, 无默认值)
|
||||
- unique_visitors (UInt64, 无默认值)
|
||||
|
||||
获取表 project_daily_stats 的结构...
|
||||
表 project_daily_stats 的列:
|
||||
- date (Date, 无默认值)
|
||||
- project_id (String, 无默认值)
|
||||
- total_clicks (UInt64, 无默认值)
|
||||
- unique_visitors (UInt64, 无默认值)
|
||||
- conversion_count (UInt64, 无默认值)
|
||||
- links_used (UInt64, 无默认值)
|
||||
- qr_scan_count (UInt64, 无默认值)
|
||||
|
||||
获取表 projects 的结构...
|
||||
表 projects 的列:
|
||||
- project_id (String, 无默认值)
|
||||
- team_id (String, 无默认值)
|
||||
- name (String, 无默认值)
|
||||
- created_at (DateTime, 无默认值)
|
||||
- created_by (String, 无默认值)
|
||||
- description (String, 默认值: '')
|
||||
- is_archived (Bool, 默认值: false)
|
||||
- links_count (UInt32, 默认值: 0)
|
||||
- total_clicks (UInt64, 默认值: 0)
|
||||
- last_updated (DateTime, 默认值: now())
|
||||
|
||||
获取表 qr_scans 的结构...
|
||||
表 qr_scans 的列:
|
||||
- scan_id (UUID, 默认值: generateUUIDv4())
|
||||
- qr_code_id (String, 无默认值)
|
||||
- link_id (String, 无默认值)
|
||||
- scan_time (DateTime64(3), 无默认值)
|
||||
- visitor_id (String, 无默认值)
|
||||
- location (String, 无默认值)
|
||||
- device_type (Enum8('mobile' = 1, 'tablet' = 2, 'desktop' = 3, 'other' = 4), 无默认值)
|
||||
- led_to_conversion (Bool, 默认值: false)
|
||||
|
||||
获取表 qrcode_daily_stats 的结构...
|
||||
表 qrcode_daily_stats 的列:
|
||||
- date (Date, 无默认值)
|
||||
- qr_code_id (String, 无默认值)
|
||||
- total_scans (UInt64, 无默认值)
|
||||
- unique_scanners (UInt64, 无默认值)
|
||||
- conversions (UInt64, 无默认值)
|
||||
- mobile_scans (UInt64, 无默认值)
|
||||
- tablet_scans (UInt64, 无默认值)
|
||||
- desktop_scans (UInt64, 无默认值)
|
||||
- unique_locations (UInt64, 无默认值)
|
||||
|
||||
获取表 qrcodes 的结构...
|
||||
表 qrcodes 的列:
|
||||
- qr_code_id (String, 无默认值)
|
||||
- link_id (String, 无默认值)
|
||||
- team_id (String, 无默认值)
|
||||
- project_id (String, 默认值: '')
|
||||
- name (String, 无默认值)
|
||||
- description (String, 默认值: '')
|
||||
- created_at (DateTime, 无默认值)
|
||||
- created_by (String, 无默认值)
|
||||
- updated_at (DateTime, 默认值: now())
|
||||
- qr_type (Enum8('standard' = 1, 'custom' = 2, 'dynamic' = 3), 默认值: 'standard')
|
||||
- image_url (String, 默认值: '')
|
||||
- design_config (String, 默认值: '{}')
|
||||
- is_active (Bool, 默认值: true)
|
||||
- total_scans (UInt64, 默认值: 0)
|
||||
- unique_scanners (UInt32, 默认值: 0)
|
||||
|
||||
获取表 sessions 的结构...
|
||||
表 sessions 的列:
|
||||
- session_id (String, 无默认值)
|
||||
- visitor_id (String, 无默认值)
|
||||
- link_id (String, 无默认值)
|
||||
- started_at (DateTime64(3), 无默认值)
|
||||
- last_activity (DateTime64(3), 无默认值)
|
||||
- ended_at (Nullable(DateTime64(3)), 无默认值)
|
||||
- duration_sec (UInt32, 默认值: 0)
|
||||
- session_pages (UInt8, 默认值: 1)
|
||||
- is_completed (Bool, 默认值: false)
|
||||
|
||||
获取表 team_daily_stats 的结构...
|
||||
表 team_daily_stats 的列:
|
||||
- date (Date, 无默认值)
|
||||
- team_id (String, 无默认值)
|
||||
- total_clicks (UInt64, 无默认值)
|
||||
- unique_visitors (UInt64, 无默认值)
|
||||
- conversion_count (UInt64, 无默认值)
|
||||
- links_used (UInt64, 无默认值)
|
||||
- qr_scan_count (UInt64, 无默认值)
|
||||
|
||||
获取表 team_members 的结构...
|
||||
表 team_members 的列:
|
||||
- team_id (String, 无默认值)
|
||||
- user_id (String, 无默认值)
|
||||
- role (Enum8('owner' = 1, 'admin' = 2, 'editor' = 3, 'viewer' = 4), 无默认值)
|
||||
- joined_at (DateTime, 默认值: now())
|
||||
- invited_by (String, 无默认值)
|
||||
- is_active (Bool, 默认值: true)
|
||||
- last_active (DateTime, 默认值: now())
|
||||
|
||||
获取表 teams 的结构...
|
||||
表 teams 的列:
|
||||
- team_id (String, 无默认值)
|
||||
- name (String, 无默认值)
|
||||
- created_at (DateTime, 无默认值)
|
||||
- created_by (String, 无默认值)
|
||||
- description (String, 默认值: '')
|
||||
- avatar_url (String, 默认值: '')
|
||||
- is_active (Bool, 默认值: true)
|
||||
- plan_type (Enum8('free' = 1, 'pro' = 2, 'enterprise' = 3), 无默认值)
|
||||
- members_count (UInt32, 默认值: 1)
|
||||
|
||||
ClickHouse数据库结构检查完成
|
||||
@@ -0,0 +1,483 @@
|
||||
使用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
|
||||
外键: 无
|
||||
索引: 无
|
||||
|
||||
数据库结构检查完成
|
||||
Reference in New Issue
Block a user