You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wkcrm/public/sql/update_sql_191016.sql

25 lines
1.1 KiB

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.

--
-- 登录记录数据表 2019-09-20
--
CREATE TABLE `5kcrm_admin_login_record` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '登录成功与否0成功1密码错误2账号禁用',
`create_user_id` int(10) NOT NULL DEFAULT '0' COMMENT '员工ID',
`create_time` int(10) NOT NULL DEFAULT '0' COMMENT '登录时间',
`ip` varchar(64) NOT NULL DEFAULT '' COMMENT '登录IPIPv6是46 凑整64位',
`address` varchar(255) NOT NULL DEFAULT '' COMMENT '登录地址',
`browser` varchar(64) NOT NULL DEFAULT '' COMMENT '浏览器',
`os` varchar(64) NOT NULL DEFAULT '' COMMENT '操作系统',
`remark` varchar(255) NOT NULL DEFAULT '' COMMENT '说明 - 暂时记录user-agent',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- 商机、合同导出权限 2019-10-11
--
INSERT INTO `5kcrm_admin_rule`(`id`, `types`, `title`, `name`, `level`, `pid`, `status`) VALUES
(146, 2, '导出', 'excelExport', 3, 34, 1),
(147, 2, '导出', 'excelExport', 3, 42, 1),
(148, 2, '合同作废', 'cancel', 3, 42, 1);