20180314145616.sql 1.4 KB
/*
    y100活动
    @author: 陈峰 <feng.chen@yoho.cn>
    @date: 2018-03-14 14:56:16
*/
#注意:GO;分割执行块

#y100活动文章扩展
CREATE TABLE IF NOT EXISTS act_article_y100 (
    `id` int(8) NOT NULL PRIMARY KEY AUTO_INCREMENT,
    `act_id` int(8) NOT NULL DEFAULT 0,
    `article_id` int(8) NOT NULL DEFAULT 0,
    `head_url` varchar(200) DEFAULT '',
    `img_url` varchar(200) DEFAULT '',
    `top` TINYINT DEFAULT 0,
    `tag` varchar(200) DEFAULT '',
    `name` varchar(200) DEFAULT '',
    `career` varchar(200) DEFAULT '',
    `style` varchar(200) DEFAULT '',
    `interest` varchar(200) DEFAULT '',
    `skns` varchar(1000) DEFAULT '',
    `index` int(8) NOT NULL DEFAULT 0,
    `desc` varchar(200) DEFAULT '',
    `desc2` varchar(200) DEFAULT '',
    `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) DEFAULT CHARSET=utf8;
GO;

#y100活动大屏表
CREATE TABLE IF NOT EXISTS act_devices_y100 (
    `id` int(8) NOT NULL PRIMARY KEY AUTO_INCREMENT,
    `act_id` int(8) NOT NULL DEFAULT 0,
    `device_no` varchar(200) DEFAULT '',
    `user_id` varchar(200) DEFAULT '',
    `user_name` varchar(200) DEFAULT '',
    `user_avatar` varchar(200) DEFAULT '',
    `user_image` varchar(200) DEFAULT '',
    `user_label` varchar(200) DEFAULT '',
    `expire_time` bigint NOT NULL,
    `status` TINYINT DEFAULT 0,
    `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) DEFAULT CHARSET=utf8;
GO;