shop-back-end/doc/sql/qy_mp_qrcode.sql

16 lines
1.0 KiB
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

CREATE TABLE `qy_mp_qrcode` (
`qrcode_id` bigint NOT NULL AUTO_INCREMENT COMMENT '二维码唯一ID',
`corpid` varchar(50) NOT NULL COMMENT '企业微信id',
`name` varchar(255) NOT NULL COMMENT '二维码名称',
`scene` varchar(64) DEFAULT NULL COMMENT '小程序码参数最大32个可见字符',
`page` varchar(255) DEFAULT NULL COMMENT '小程序页面路径',
`qrcode_url` text DEFAULT NULL COMMENT '二维码链接',
`creator_id` bigint NOT NULL DEFAULT 0 COMMENT '创建者ID',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updater_id` bigint NOT NULL DEFAULT 0 COMMENT '更新者ID',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '删除标志0存在 1删除',
PRIMARY KEY (`qrcode_id`),
UNIQUE KEY `uk_corpid_name` (`corpid`, `name`),
KEY `idx_create_time` (`create_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='企业小程序二维码表';