将文件拖动至此

SQL 上传 ( 0 ) x -

页面相关设置 点击以滚动到页面顶部
按 Ctrl+Enter 键执行查询 按 Enter 执行查询
递增排序
递减排序
命令:
调试 SQL
数量
运行顺序
用时
排序条件:
联合查询
不使用联合查询
崩溃 扩展 显示跟踪 隐藏跟踪 数量 用时
书签
刷新
添加
没有书签
添加书签
选项
恢复默认





崩溃 扩展 重新查询 编辑 解析 性能分析 书签 查询失败 数据库 : 查询时间 :

peopleteam_HESK

hesk_attachments

字段 类型 默认 链接到 注释 媒体类型
att_id (主键) mediumint(8)
ticket_id varchar(13)
saved_name varchar(255)
real_name varchar(255)
size int(10) 0
type enum('0', '1') 0

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE att_id 2432 A
ticket_id BTREE ticket_id A

hesk_auth_tokens

字段 类型 默认 链接到 注释 媒体类型
id (主键) int(11)
selector char(12) NULL
token char(64) NULL
user_id smallint(5)
created timestamp current_timestamp()
expires timestamp NULL

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 6 A

hesk_banned_emails

字段 类型 默认 链接到 注释 媒体类型
id (主键) smallint(5)
email varchar(255)
banned_by smallint(5)
dt timestamp current_timestamp()

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 2 A
email BTREE email A

hesk_banned_ips

字段 类型 默认 链接到 注释 媒体类型
id (主键) smallint(5)
ip_from int(10) 0
ip_to int(10) 0
ip_display varchar(100)
banned_by smallint(5)
dt timestamp current_timestamp()

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 0 A

hesk_categories

字段 类型 默认 链接到 注释 媒体类型
id (主键) smallint(5)
name varchar(255)
cat_order smallint(5) 0
autoassign enum('0', '1') 1
autoassign_config varchar(1000) NULL
type enum('0', '1') 0
priority enum('0', '1', '2', '3') 3
default_due_date_amount int(11) NULL
default_due_date_unit varchar(10) NULL

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 15 A
type BTREE type A

hesk_custom_fields

字段 类型 默认 链接到 注释 媒体类型
id (主键) tinyint(3)
use enum('0', '1', '2') 0
place enum('0', '1') 0
type varchar(20) text
req enum('0', '1', '2') 0
category text NULL
name text NULL
value text NULL
order smallint(5) 10

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 50 A
useType BTREE use A
type A

hesk_custom_statuses

字段 类型 默认 链接到 注释 媒体类型
id (主键) tinyint(3)
name text
color varchar(6)
can_customers_change enum('0', '1') 1
order smallint(5) 10

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 2 A

hesk_kb_articles

字段 类型 默认 链接到 注释 媒体类型
id (主键) smallint(5)
catid smallint(5)
dt timestamp current_timestamp()
author smallint(5)
subject varchar(255)
content mediumtext
keywords mediumtext
rating float 0
votes mediumint(8) 0
views mediumint(8) 0
type enum('0', '1', '2') 0
html enum('0', '1') 0
sticky enum('0', '1') 0
art_order smallint(5) 0
history mediumtext
attachments mediumtext

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 0 A
catid BTREE catid A
sticky BTREE sticky A
type BTREE type A
subject FULLTEXT subject
content
keywords

hesk_kb_attachments

字段 类型 默认 链接到 注释 媒体类型
att_id (主键) mediumint(8)
saved_name varchar(255)
real_name varchar(255)
size int(10) 0

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE att_id 0 A

hesk_kb_categories

字段 类型 默认 链接到 注释 媒体类型
id (主键) smallint(5)
name varchar(255)
parent smallint(5)
articles smallint(5) 0
articles_private smallint(5) 0
articles_draft smallint(5) 0
cat_order smallint(5)
type enum('0', '1') 0

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 1 A
type BTREE type A
parent BTREE parent A

hesk_logins

字段 类型 默认 链接到 注释 媒体类型
id (主键) int(10)
ip varchar(45)
number tinyint(3) 1
last_attempt timestamp current_timestamp()

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 42 A
ip BTREE ip 42 A

hesk_log_overdue

字段 类型 默认 链接到 注释 媒体类型
id (主键) int(10)
dt timestamp current_timestamp()
ticket mediumint(8)
category smallint(5)
priority enum('0', '1', '2', '3')
status tinyint(3)
owner smallint(5) 0
due_date timestamp 2000-01-01 00:00:00
comments varchar(255) NULL

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 0 A
ticket BTREE ticket A
category BTREE category A
priority BTREE priority A
status BTREE status A
owner BTREE owner A

hesk_mail

字段 类型 默认 链接到 注释 媒体类型
id (主键) int(10)
from smallint(5)
to smallint(5)
subject varchar(255)
message mediumtext
dt timestamp current_timestamp()
read enum('0', '1') 0
deletedby smallint(5) 0

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 3 A
from BTREE from A
to BTREE to A
read A
deletedby A

hesk_mfa_backup_codes

字段 类型 默认 链接到 注释 媒体类型
id (主键) int(10)
dt timestamp current_timestamp()
user_id smallint(5)
code varchar(255)

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 10 A

hesk_mfa_verification_tokens

字段 类型 默认 链接到 注释 媒体类型
id (主键) int(10)
user_id smallint(5)
verification_token varchar(255)
expires_at timestamp 2000-01-01 00:00:00

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 0 A
user_id BTREE user_id A
verification_token BTREE verification_token A

hesk_notes

字段 类型 默认 链接到 注释 媒体类型
id (主键) mediumint(8)
ticket mediumint(8)
who smallint(5)
dt timestamp current_timestamp()
message mediumtext
attachments mediumtext

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 11 A
ticketid BTREE ticket A

hesk_oauth_providers

字段 类型 默认 链接到 注释 媒体类型
id (主键) int(11)
name varchar(255)
authorization_url text
token_url text
client_id text
client_secret text
scope text
no_val_ssl tinyint(4) 0
verified smallint(6) 0

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 1 A

hesk_oauth_tokens

字段 类型 默认 链接到 注释 媒体类型
id (主键) int(11)
provider_id int(11)
token_value text NULL
token_type varchar(32)
created timestamp current_timestamp()
expires timestamp NULL

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 2 A

hesk_online

字段 类型 默认 链接到 注释 媒体类型
id (主键) int(10)
user_id smallint(5)
dt timestamp current_timestamp()
tmp int(11) 0

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 0 A
user_id BTREE user_id 0 A
dt BTREE dt A

hesk_pipe_loops

字段 类型 默认 链接到 注释 媒体类型
id (主键) int(10)
email varchar(255)
hits smallint(1) 0
message_hash char(32)
dt timestamp current_timestamp()

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 1 A
email BTREE email A
hits A

hesk_replies

字段 类型 默认 链接到 注释 媒体类型
id (主键) mediumint(8)
replyto mediumint(8) 0
name varchar(255)
message mediumtext
message_html mediumtext NULL
dt timestamp current_timestamp()
attachments mediumtext NULL
staffid smallint(5) 0
rating enum('1', '5') NULL
read enum('0', '1') 0

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 1926 A
replyto BTREE replyto A
dt BTREE dt A
staffid BTREE staffid A

hesk_reply_drafts

字段 类型 默认 链接到 注释 媒体类型
id (主键) int(10)
owner smallint(5)
ticket mediumint(8)
message mediumtext
message_html mediumtext NULL
dt timestamp current_timestamp()

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 102 A
owner BTREE owner A
ticket BTREE ticket A

hesk_reset_password

字段 类型 默认 链接到 注释 媒体类型
id (主键) mediumint(8)
user smallint(5)
hash char(40)
ip varchar(45)
dt timestamp current_timestamp()

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 0 A
user BTREE user A

hesk_service_messages

字段 类型 默认 链接到 注释 媒体类型
id (主键) smallint(5)
dt timestamp current_timestamp()
author smallint(5)
title varchar(255)
message mediumtext
language varchar(50) NULL
style enum('0', '1', '2', '3', '4') 0
type enum('0', '1') 0
order smallint(5) 0

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 0 A
type BTREE type A

hesk_std_replies

字段 类型 默认 链接到 注释 媒体类型
id (主键) smallint(5)
title varchar(100)
message mediumtext
message_html mediumtext NULL
reply_order smallint(5) 0

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 0 A

hesk_temp_attachments

字段 类型 默认 链接到 注释 媒体类型
att_id (主键) mediumint(8)
unique_id varchar(255)
saved_name varchar(255)
real_name varchar(255)
size int(10) 0
expires_at timestamp current_timestamp()

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE att_id 0 A

hesk_temp_attachments_limits

字段 类型 默认 链接到 注释 媒体类型
ip (主键) varchar(45)
upload_count int(10) 1
last_upload_at timestamp current_timestamp()

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE ip 10 A

hesk_tickets

字段 类型 默认 链接到 注释 媒体类型
id (主键) mediumint(8)
trackid varchar(13)
name varchar(255)
email varchar(1000)
category smallint(5) 1
priority enum('0', '1', '2', '3') 3
subject varchar(255)
message mediumtext
message_html mediumtext NULL
dt timestamp 2000-01-01 00:00:00
lastchange timestamp current_timestamp()
firstreply timestamp NULL
closedat timestamp NULL
articles varchar(255) NULL
ip varchar(45)
language varchar(50) NULL
status tinyint(3) 0
openedby mediumint(8) 0
firstreplyby smallint(5) NULL
closedby mediumint(8) NULL
replies smallint(5) 0
staffreplies smallint(5) 0
owner smallint(5) 0
assignedby mediumint(8) NULL
time_worked time 00:00:00
lastreplier enum('0', '1') 0
replierid smallint(5) NULL
archive enum('0', '1') 0
locked enum('0', '1') 0
attachments mediumtext
merged mediumtext
history mediumtext
custom1 mediumtext
custom2 mediumtext
custom3 mediumtext
custom4 mediumtext
custom5 mediumtext
custom6 mediumtext
custom7 mediumtext
custom8 mediumtext
custom9 mediumtext
custom10 mediumtext
custom11 mediumtext
custom12 mediumtext
custom13 mediumtext
custom14 mediumtext
custom15 mediumtext
custom16 mediumtext
custom17 mediumtext
custom18 mediumtext
custom19 mediumtext
custom20 mediumtext
custom21 mediumtext
custom22 mediumtext
custom23 mediumtext
custom24 mediumtext
custom25 mediumtext
custom26 mediumtext
custom27 mediumtext
custom28 mediumtext
custom29 mediumtext
custom30 mediumtext
custom31 mediumtext
custom32 mediumtext
custom33 mediumtext
custom34 mediumtext
custom35 mediumtext
custom36 mediumtext
custom37 mediumtext
custom38 mediumtext
custom39 mediumtext
custom40 mediumtext
custom41 mediumtext
custom42 mediumtext
custom43 mediumtext
custom44 mediumtext
custom45 mediumtext
custom46 mediumtext
custom47 mediumtext
custom48 mediumtext
custom49 mediumtext
custom50 mediumtext
due_date timestamp NULL
overdue_email_sent tinyint(1) 0
satisfaction_email_sent tinyint(1) 0
satisfaction_email_dt timestamp NULL

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 2218 A
trackid BTREE trackid A
archive BTREE archive A
categories BTREE category A
statuses BTREE status A
owner BTREE owner A
openedby BTREE openedby A
firstreplyby A
closedby A
dt BTREE dt A

hesk_ticket_templates

字段 类型 默认 链接到 注释 媒体类型
id (主键) smallint(5)
title varchar(100)
message mediumtext
message_html mediumtext NULL
tpl_order smallint(5) 0

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 0 A

hesk_users

字段 类型 默认 链接到 注释 媒体类型
id (主键) smallint(5)
user varchar(255)
pass varchar(255)
isadmin enum('0', '1') 0
name varchar(255)
email varchar(255)
signature varchar(1000)
language varchar(50) NULL
categories varchar(500)
afterreply enum('0', '1', '2') 0
autostart enum('0', '1') 1
autoreload smallint(5) 0
notify_customer_new enum('0', '1') 1
notify_customer_reply enum('0', '1') 1
show_suggested enum('0', '1') 1
notify_new_unassigned enum('0', '1') 1
notify_new_my enum('0', '1') 1
notify_reply_unassigned enum('0', '1') 1
notify_reply_my enum('0', '1') 1
notify_assigned enum('0', '1') 1
notify_pm enum('0', '1') 1
notify_note enum('0', '1') 1
notify_overdue_unassigned enum('0', '1') 1
notify_overdue_my enum('0', '1') 1
default_list varchar(255)
autoassign enum('0', '1') 1
heskprivileges varchar(1000) NULL
ratingneg mediumint(8) 0
ratingpos mediumint(8) 0
rating float 0
replies mediumint(8) 0
mfa_enrollment smallint(5) 0
mfa_secret varchar(255) NULL

索引

键名 类型 唯一 紧凑 字段 基数 排序规则 注释
PRIMARY BTREE id 5 A
autoassign BTREE autoassign A