migrate/1724654986_create_table_dynamic_ad.up.sql
2024-08-26 15:08:34 +08:00

18 lines
967 B
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 `ufutx_dynamic_adv` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL COMMENT '广告标题',
`icon` text NOT NULL COMMENT '图标',
`page` int(10) NOT NULL COMMENT '第几页',
`sort` int(10) NOT NULL COMMENT '第几个',
`type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '类型 0app内部 1外部链接',
`sub_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '子类型 0商品',
`shop_id` int(10) DEFAULT NULL COMMENT '商品id',
`is_limit` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否限时 0否 1',
`start_time` varchar(24) DEFAULT NULL COMMENT '开始时间',
`end_time` varchar(24) DEFAULT NULL COMMENT '结束时间',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `title` (`title`(191)) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='动态广告表';