vr-shopxo-source/application/plugins/petscms/install.sql

21 lines
1.3 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

CREATE TABLE `s_plugins_petscms_pets` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
`title` char(60) NOT NULL DEFAULT '' COMMENT '标题',
`name` char(30) NOT NULL DEFAULT '' COMMENT '名字',
`birthday` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '出生日期',
`type` char(60) NOT NULL DEFAULT '' COMMENT '类型',
`varieties` char(60) NOT NULL DEFAULT '' COMMENT '品种',
`gender` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '性别0公, 1母',
`sterilization` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '是否绝育0否, 1是',
`vaccine` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '是否疫苗0否, 1是',
`photo` mediumtext NOT NULL COMMENT '相册json数据',
`content` mediumtext NOT NULL COMMENT '宠物简介',
`person_name` char(30) NOT NULL DEFAULT '' COMMENT '主人姓名',
`person_tel` char(30) NOT NULL DEFAULT '' COMMENT '主人电话',
`person_weixin` char(30) NOT NULL DEFAULT '' COMMENT '主人微信',
`add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间',
`upd_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
PRIMARY KEY (`id`),
KEY `type` (`type`),
KEY `gender` (`gender`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='宠物管理系统宠物 - 应用';