edu/sql/install_v1.9.0.sql

906 lines
92 KiB
MySQL
Raw Normal View History

2024-10-10 06:08:54 +00:00
-- Adminer 4.8.1 MySQL 5.7.44 dump
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
2022-05-20 02:35:28 +00:00
SET NAMES utf8mb4;
DROP TABLE IF EXISTS `la_admin`;
CREATE TABLE `la_admin` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`root` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否超级管理员 0-否 1-是',
`name` varchar(32) NOT NULL DEFAULT '' COMMENT '名称',
`avatar` varchar(255) NOT NULL DEFAULT '' COMMENT '用户头像',
`account` varchar(32) NOT NULL DEFAULT '' COMMENT '账号',
`password` varchar(32) NOT NULL COMMENT '密码',
`login_time` int(10) DEFAULT NULL COMMENT '最后登录时间',
`login_ip` varchar(39) DEFAULT '' COMMENT '最后登录ip',
`multipoint_login` tinyint(1) unsigned DEFAULT '1' COMMENT '是否支持多处登录1-是0-否;',
`disable` tinyint(1) unsigned DEFAULT '0' COMMENT '是否禁用0-否1-是;',
`create_time` int(10) NOT NULL COMMENT '创建时间',
`update_time` int(10) DEFAULT NULL COMMENT '修改时间',
`delete_time` int(10) DEFAULT NULL COMMENT '删除时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='管理员表';
DROP TABLE IF EXISTS `la_admin_dept`;
CREATE TABLE `la_admin_dept` (
`admin_id` int(10) NOT NULL DEFAULT '0' COMMENT '管理员id',
`dept_id` int(10) NOT NULL DEFAULT '0' COMMENT '部门id',
PRIMARY KEY (`admin_id`,`dept_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='部门关联表';
DROP TABLE IF EXISTS `la_admin_jobs`;
CREATE TABLE `la_admin_jobs` (
`admin_id` int(10) NOT NULL COMMENT '管理员id',
`jobs_id` int(10) NOT NULL COMMENT '岗位id',
PRIMARY KEY (`admin_id`,`jobs_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='岗位关联表';
DROP TABLE IF EXISTS `la_admin_role`;
CREATE TABLE `la_admin_role` (
`admin_id` int(10) NOT NULL COMMENT '管理员id',
`role_id` int(10) NOT NULL COMMENT '角色id',
PRIMARY KEY (`admin_id`,`role_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='角色关联表';
2024-10-10 06:08:54 +00:00
DROP TABLE IF EXISTS `la_admin_session`;
CREATE TABLE `la_admin_session` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`admin_id` int(11) unsigned NOT NULL COMMENT '用户id',
`terminal` tinyint(1) NOT NULL DEFAULT '1' COMMENT '客户端类型1-pc管理后台 2-mobile手机管理后台',
`token` varchar(32) NOT NULL COMMENT '令牌',
`update_time` int(10) DEFAULT NULL COMMENT '更新时间',
`expire_time` int(10) NOT NULL COMMENT '到期时间',
2022-11-17 10:28:16 +00:00
PRIMARY KEY (`id`) USING BTREE,
2024-10-10 06:08:54 +00:00
UNIQUE KEY `admin_id_client` (`admin_id`,`terminal`) USING BTREE COMMENT '一个用户在一个终端只有一个token',
UNIQUE KEY `token` (`token`) USING BTREE COMMENT 'token是唯一的'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='管理员会话表';
2022-05-20 02:35:28 +00:00
2022-08-17 09:34:58 +00:00
DROP TABLE IF EXISTS `la_article`;
CREATE TABLE `la_article` (
2024-10-10 06:08:54 +00:00
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '文章id',
`cid` int(11) NOT NULL COMMENT '文章分类',
`title` varchar(255) NOT NULL COMMENT '文章标题',
`desc` varchar(255) DEFAULT '' COMMENT '简介',
`abstract` text COMMENT '文章摘要',
`image` varchar(128) DEFAULT NULL COMMENT '文章图片',
`author` varchar(255) DEFAULT '' COMMENT '作者',
`content` text COMMENT '文章内容',
`click_virtual` int(10) DEFAULT '0' COMMENT '虚拟浏览量',
`click_actual` int(11) DEFAULT '0' COMMENT '实际浏览量',
`is_show` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否显示:1-是.0-否',
`sort` int(5) DEFAULT '0' COMMENT '排序',
`create_time` int(11) DEFAULT NULL COMMENT '创建时间',
`update_time` int(11) DEFAULT NULL COMMENT '更新时间',
`delete_time` int(11) DEFAULT NULL COMMENT '删除时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='文章表';
2024-10-10 06:08:54 +00:00
INSERT INTO `la_article` (`id`, `cid`, `title`, `desc`, `abstract`, `image`, `author`, `content`, `click_virtual`, `click_actual`, `is_show`, `sort`, `create_time`, `update_time`, `delete_time`) VALUES
(1, 3, '让生活更精致!五款居家好物推荐,实用性超高', '##好物推荐🔥', '随着当代生活节奏的忙碌,很多人在闲暇之余都想好好的享受生活。随着科技的发展,也出现了越来越多可以帮助我们提升幸福感,让生活变得更精致的产品,下面周周就给大家盘点五款居家必备的好物,都是实用性很高的产品,周周可以保证大家买了肯定会喜欢。', '/api/static/article01.png', '红花', '<p>拥有一台投影仪,闲暇时可以在家里直接看影院级别的大片,光是想想都觉得超级爽。市面上很多投影仪大几千,其实周周觉得没必要,选泰捷这款一千多的足够了,性价比非常高。</p><p>泰捷的专业度很高在电视TV领域研发已经十年有诸多专利和技术创新荣获国内外多项技术奖项拿下了腾讯创新工场投资打造的泰捷视频TV端和泰捷电视盒子都获得了极高评价。</p><p>这款投影仪的分辨率在3000元内无敌做到了真1080P高分辨率也就是跟市场售价三千DLP投影仪一样的分辨率真正做到了分毫毕现像桌布的花纹、天空的云彩等这些细节都清晰可见。</p><p>亮度方面泰捷达到了850ANSI流明同价位一般是200ANSI。这是因为泰捷为了提升亮度和LCD技术透射率低的问题首创高功率LED灯源让其亮度做到同价位最好。专业媒体也进行了多次对比效果与3000元价位投影仪相当。</p><p>操作系统周周也很喜欢,完全不卡。泰捷作为资深音视频品牌,在系统优化方面有十年的研发经验,打造出的“零极”系统是业内公认效率最高、速度最快的系统,用户也评价它流畅度能一台顶三台,而且为了解决行业广告多这一痛点,系统内不植入任何广告。</p>', 1, 2, 1, 0, 1663317759, 1727070911, NULL),
(2, 2, '埋葬UI设计师的坟墓不是内卷而是免费模式', '', '本文从另外一个角度聊聊作者对UI设计师职业发展前景的担忧欢迎从事UI设计的同学来参与讨论会有赠书哦', '/api/static/article02.jpeg', '小明', '<p><br></p><p style=\"text-align: justify;\">一个职业,卷,根本就没什么大不了的,尤其是成熟且收入高的职业,不卷才不符合事物发展的规律。何况 UI 设计师的人力市场到今天也和 5 年前一样,还是停留在大型菜鸡互啄的场面。远不能和医疗、证券、教师或者演艺练习生相提并论。</p><p style=\"text-align: justify;\">真正会让我对UI设计师发展前景觉得悲观的事情就只有一件 —— 国内的互联网产品免费机制。这也是一个我一直以来想讨论的话题,就在这次写一写。</p><p style=\"text-align: justify;\">国内互联网市场的发展,是一部浩瀚的 “免费经济” 发展史。虽然今天免费已经是深入国内民众骨髓的认知,但最早的中文互联网也是需要付费的,网游也都是要花钱的。</p><p style=\"text-align: justify;\">只是自有国情在此,付费确实阻碍了互联网行业的扩张和普及,一批创业家就开始通过免费的模式为用户提供服务,从而扩大了自己的产品覆盖面和普及程度。</p><p style=\"text-align: justify;\">印象最深的就是免费急先锋周鸿祎,和现在鲜少出现在公众视野不同,一零年前他是当之无愧的互联网教主,因为他开发出了符合中国国情的互联网产品 “打法”,让 360 的发展如日中天。</p><p style=\"text-align: justify;\">就是他在自传中提到:</p><p style=\"text-align: justify;\">只要是在互联网上每个人都需要的服务,我们就认为它是基础服务,基础服务一定是免费的,这样的话不会形成价值歧视。就是说,只要这种服务是每个人都一定要用的,我一定免费提供,而且是无条件免费。增值服务不是所有人都需要的,这个比例可能会相当低,它只是百分之几甚至更少比例的人需要,所以这种服务一定要收费……</p><p style=\"text-align: justify;\">这就是互联网的游戏规则,它决定了要想建立一个有效的商业模式,就一定要有海量的用户基数……</p>', 2, 4, 1, 0, 1663322854, 1727071178, NULL),
(3, 1, '金山电池公布“沪广深市民绿色生活方式”调查结果', '', '60%以上受访者认为高质量的10分钟足以完成“自我充电”', '/api/static/article03.png', '中网资讯科技', '<p style=\"text-align: left;\"><strong>深圳2021年10月22日</strong>生活在一线城市的沪广深市民一向以效率见称工作繁忙和快节奏的生活容易缺乏充足的休息。近日一项针对沪广深市民绿色生活方式而展开的网络问卷调查引起了大家的注意。问卷的问题设定集中于市民对休息时间的看法以及从对循环充电电池的使用方面了解其对绿色生活方式的态度。该调查采用随机抽样的模式并对最终收集的1,500份有效问卷进行专业分析后发现超过60%的受访者表示在每天的工作时段能拥有10分钟高质量的休息时间就可以高效“自我充电”。该调查结果反映出在快节奏时代下人们需要高质量的休息时间也要学会利用高效率的休息方式和工具来应对快节奏的生活以时刻保持“满电”状态。</p><p style=\"text-align: left;\">  <strong>60%以上受访者认为高质量的10分钟足以完成“自我充电”</strong></p><p style=\"text-align: left;\">  这次调查超过1,500人主要聚焦18至85岁的沪广深市民了解他们对于休息时间的观念及使用充电电池的习惯结果发现</p><p style=\"text-align: left;\">  · 90%以上有工作受访者每天工作时间在7小时以上平均工作时间为8小时其中43%以上的受访者工作时间超过9小时</p><p style=\"text-align: left;\">  · 70%受访者认为在工作期间拥有10分钟“自我充电”时间不是一件困难的事情</p><p style=\"text-align: left;\">  · 60%受访者认为在工作期间有10分钟休息时间足以为自己快速充电</p><p style=\"text-align: left;\">  临床心理学家黄咏诗女士在发布会上分享为自己快速充电的实用技巧她表示“事实上只要选择正确的休息方法10分钟也足以为自己充电。以喝咖啡为例我们可以使用心灵休息法 ── 静观呼吸,慢慢感受咖啡的温度和气味,如果能配合着聆听流水或海洋的声音,能够有效放松大脑及心灵。”</p><p style=\"text-align: left;\">  这次调查结果反映出沪广深市民的希望在繁忙的工作中适时停下来抽出10分钟喝杯咖啡、聆听音乐或小睡片刻为自己充电。金山电池全新推出的“绿再十分充”超快速充电器仅需10分钟就能充好电喝一杯咖啡的时间既能完成“自我充电”也满足设备使用的用电需求为提升工作效率和放松身心注入新能量。</p><p style=\"text-align: left;\">  <strong>金山电池推出10分钟超快电池充电器*绿再十分充,以创新科技为市场带来革新体验</strong></p><p style=\"text-align: left;\">  该问卷同时从沪广深市民对循环充电电池的使用方面进行了调查,以了解其对绿色生活方式的态度:</p><p style=\"text-align: left;\">  · 87%受访者目前没有使用充电电池其中61%表示会考虑使用充电电池</p><p style=\"text-align: left;\">  · 58%受访者过往曾使用过充电电池却只有20%左右市民仍在使用</p><p style=\"text-align: left;\">  · 60%左右受访者认为充电电池尚未被广泛使用,主要障碍来自于充电时间过长、缺乏相关教育</p><p style=\"text-align: left;\">  · 90%以上受访者认为充电电池充满电需要1小时或更长的时间</p><p style=\"text-align: left;\">  金山电池一直致力于为大众提供安全可靠的充电电池并与消费者的需求和生活方式一起演变及进步。今天金山电池宣布推出10分钟超快电池充电器*绿再十分充只需10分钟*即可将4粒绿再十分充充电电池充好电充电速度比其他品牌提升3倍**。充电器的LED灯可以显示每<E7A4BA><E6AF8F>
2022-05-20 02:35:28 +00:00
2024-10-10 06:08:54 +00:00
DROP TABLE IF EXISTS `la_article_cate`;
CREATE TABLE `la_article_cate` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '文章分类id',
`name` varchar(90) DEFAULT NULL COMMENT '分类名称',
`sort` int(11) DEFAULT '0' COMMENT '排序',
`is_show` tinyint(1) DEFAULT '1' COMMENT '是否显示:1-是;0-否',
`create_time` int(10) DEFAULT NULL COMMENT '创建时间',
`update_time` int(10) DEFAULT NULL COMMENT '更新时间',
`delete_time` int(10) DEFAULT NULL COMMENT '删除时间',
2022-05-20 02:35:28 +00:00
PRIMARY KEY (`id`) USING BTREE
2024-10-10 06:08:54 +00:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='文章分类表';
2024-10-10 06:08:54 +00:00
INSERT INTO `la_article_cate` (`id`, `name`, `sort`, `is_show`, `create_time`, `update_time`, `delete_time`) VALUES
(1, '科技', 0, 1, 1663317280, 1663317280, NULL),
(2, '生活', 0, 1, 1663317280, 1663321464, NULL),
(3, '好物', 0, 1, 1727070858, 1727070858, NULL);
2022-05-20 02:35:28 +00:00
2022-09-09 02:30:46 +00:00
DROP TABLE IF EXISTS `la_article_collect`;
CREATE TABLE `la_article_collect` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
`article_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '文章ID',
2024-10-10 06:08:54 +00:00
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '收藏状态 0-未收藏 1-已收藏',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
2024-10-10 06:08:54 +00:00
`delete_time` int(10) DEFAULT NULL COMMENT '删除时间',
2022-09-09 02:30:46 +00:00
PRIMARY KEY (`id`) USING BTREE
2024-10-10 06:08:54 +00:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='文章收藏表';
DROP TABLE IF EXISTS `la_config`;
CREATE TABLE `la_config` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` varchar(30) DEFAULT NULL COMMENT '类型',
`name` varchar(60) NOT NULL DEFAULT '' COMMENT '名称',
`value` text COMMENT '',
`create_time` int(10) DEFAULT NULL COMMENT '创建时间',
`update_time` int(10) DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='配置表';
2023-03-17 03:51:16 +00:00
2022-09-09 02:30:46 +00:00
DROP TABLE IF EXISTS `la_decorate_page`;
CREATE TABLE `la_decorate_page` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
2024-10-10 06:08:54 +00:00
`type` tinyint(2) unsigned NOT NULL DEFAULT '10' COMMENT '页面类型 1=商城首页, 2=个人中心, 3=客服设置 4-PC首页',
`name` varchar(100) NOT NULL DEFAULT '' COMMENT '页面名称',
`data` text COMMENT '页面数据',
`meta` text COMMENT '页面设置',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(10) unsigned NOT NULL COMMENT '更新时间',
2022-09-09 02:30:46 +00:00
PRIMARY KEY (`id`) USING BTREE
2024-10-10 06:08:54 +00:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='装修页面配置表';
2024-10-10 06:08:54 +00:00
INSERT INTO `la_decorate_page` (`id`, `type`, `name`, `data`, `meta`, `create_time`, `update_time`) VALUES
(1, 1, '商城首页', '[{\"title\":\"搜索\",\"name\":\"search\",\"disabled\":1,\"content\":{},\"styles\":{}},{\"title\":\"首页轮播图\",\"name\":\"banner\",\"content\":{\"enabled\":1,\"data\":[{\"image\":\"/api/static/banner001.png\",\"name\":\"\",\"link\":{\"id\":6,\"name\":\"来自瓷器的爱\",\"path\":\"/pages/news_detail/news_detail\",\"query\":{\"id\":6},\"type\":\"article\"},\"is_show\":\"1\",\"bg\":\"api/static/banner001_bg.png\"},{\"image\":\"/api/static/banner002.png\",\"name\":\"\",\"link\":{\"id\":3,\"name\":\"金山电池公布“沪广深市民绿色生活方式”调查结果\",\"path\":\"/pages/news_detail/news_detail\",\"query\":{\"id\":3},\"type\":\"article\"},\"is_show\":\"1\",\"bg\":\"/api/static/banner002_bg.png\"},{\"is_show\":\"1\",\"image\":\"/api/static/banner003.png\",\"name\":\"\",\"link\":{\"id\":1,\"name\":\"让生活更精致!五款居家好物推荐,实用性超高\",\"path\":\"/pages/news_detail/news_detail\",\"query\":{\"id\":1},\"type\":\"article\"},\"bg\":\"/api/static/banner003_bg.png\"}],\"style\":1,\"bg_style\":1},\"styles\":{}},{\"title\":\"导航菜单\",\"name\":\"nav\",\"content\":{\"enabled\":1,\"data\":[{\"image\":\"/api/static/nav01.png\",\"name\":\"资讯中心\",\"link\":{\"path\":\"/pages/news/news\",\"name\":\"文章资讯\",\"type\":\"shop\",\"canTab\":true},\"is_show\":\"1\"},{\"image\":\"/api/static/nav03.png\",\"name\":\"个人设置\",\"link\":{\"path\":\"/pages/user_set/user_set\",\"name\":\"个人设置\",\"type\":\"shop\"},\"is_show\":\"1\"},{\"image\":\"/api/static/nav02.png\",\"name\":\"我的收藏\",\"link\":{\"path\":\"/pages/collection/collection\",\"name\":\"我的收藏\",\"type\":\"shop\"},\"is_show\":\"1\"},{\"image\":\"/api/static/nav05.png\",\"name\":\"关于我们\",\"link\":{\"path\":\"/pages/as_us/as_us\",\"name\":\"关于我们\",\"type\":\"shop\"},\"is_show\":\"1\"},{\"image\":\"/api/static/nav04.png\",\"name\":\"联系客服\",\"link\":{\"path\":\"/pages/customer_service/customer_service\",\"name\":\"联系客服\",\"type\":\"shop\"},\"is_show\":\"1\"}],\"style\":2,\"per_line\":5,\"show_line\":2},\"styles\":{}},{\"title\":\"首页中部轮播图\",\"name\":\"middle-banner\",\"content\":{\"enabled\":1,\"data\":[{\"is_show\":\"1\",\"image\":\"/api/static/index_ad01.png\",\"name\":\"\",\"link\":{\"path\":\"/pages/agreement/agreement\",\"name\":\"隐私政策\",\"query\":{\"type\":\"privacy\"},\"type\":\"shop\"}}]},\"styles\":{}},{\"id\":\"l84almsk2uhyf\",\"title\":\"资讯\",\"name\":\"news\",\"disabled\":1,\"content\":{},\"styles\":{}}]', '[{\"title\":\"页面设置\",\"name\":\"page-meta\",\"content\":{\"title\":\"首页\",\"bg_type\":\"2\",\"bg_color\":\"#2F80ED\",\"bg_image\":\"/api/static/page_meta_bg01.png\",\"text_color\":\"2\",\"title_type\":\"2\",\"title_img\":\"/api/static/page_mate_title.png\"},\"styles\":{}}]', 1661757188, 1710989700),
(2, 2, '个人中心', '[{\"title\":\"用户信息\",\"name\":\"user-info\",\"disabled\":1,\"content\":{},\"styles\":{}},{\"title\":\"我的服务\",\"name\":\"my-service\",\"content\":{\"style\":1,\"title\":\"我的服务\",\"data\":[{\"image\":\"/api/static/user_collect.png\",\"name\":\"我的收藏\",\"link\":{\"path\":\"/pages/collection/collection\",\"name\":\"我的收藏\",\"type\":\"shop\"},\"is_show\":\"1\"},{\"image\":\"/api/static/user_setting.png\",\"name\":\"个人设置\",\"link\":{\"path\":\"/pages/user_set/user_set\",\"name\":\"个人设置\",\"type\":\"shop\"},\"is_show\":\"1\"},{\"image\":\"/api/static/user_kefu.png\",\"name\":\"联系客服\",\"link\":{\"path\":\"/pages/customer_service/customer_service\",\"name\":\"联系客服\",\"type\":\"shop\"},\"is_show\":\"1\"},{\"image\":\"/api/static/wallet.png\",\"name\":\"我的钱包\",\"link\":{\"path\":\"/packages/pages/user_wallet/user_wallet\",\"name\":\"我的钱包\",\"type\":\"shop\"},\"is_show\":\"1\"}],\"enabled\":1},\"styles\":{}},{\"title\":\"个人中心广告图\",\"name\":\"user-banner\",\"content\":{\"enabled\":1,\"data\":[{\"image\":\"api/static/user_ad01.png\",\"name\":\"\",\"link\":{\"path\":\"/pages/customer_service/customer_service\",\"name\":\"联系客服\",\"type\":\"shop\"},\"is_show\":\"1\"},{\"image\":\"/api/static/user_ad02.png\",\"name\":\"\",\"link\":{\"path\":\"/pages/customer_service/customer_service\",\"name\":\"联系客服\",\"type\":\"shop\"},\"is_show\":\"1\"}]},\"styles\":{}}]', '[{\"title\":\"页面设置\",\"name\":\"page-meta\",\"content\":{\"title\":\"个人中心\",\"bg_type\":\"1\",\"bg_color\":\"#2F80ED\",\"bg_image\":\"\",\"text_color\":\"1\",\"title_type\":\"2\",\"title_img\":\"/api/static/page_mate_title.png\"},\"styles\":{}}]', 1661757188, 1710933097),
(3, 3, '客服设置', '[{\"title\":\"客服设置\",\"name\":\"customer-service\",\"content\":{\"title\":\"添加客服二维码\",\"time\":\"早上 9:30 - 19:00\",\"mobile\":\"18578768757\",\"qrcode\":\"/api/static/kefu01.png\",\"remark\":\"长按添加客服或拨打客服热线\"},\"styles\":{}}]', '', 1661757188, 1710929953),
(4, 4, 'PC设置', '[{\"id\":\"lajcn8d0hzhed\",\"title\":\"首页轮播图\",\"name\":\"pc-banner\",\"content\":{\"enabled\":1,\"data\":[{\"image\":\"/api/static/banner003.png\",\"name\":\"\",\"link\":{\"path\":\"/pages/news/news\",\"name\":\"文章资讯\",\"type\":\"shop\"}},{\"image\":\"/api/static/banner002.png\",\"name\":\"\",\"link\":{\"path\":\"/pages/collection/collection\",\"name\":\"我的收藏\",\"type\":\"shop\"}},{\"image\":\"/api/static/banner001.png\",\"name\":\"\",\"link\":{}}]},\"styles\":{\"position\":\"absolute\",\"left\":\"40\",\"top\":\"75px\",\"width\":\"750px\",\"height\":\"340px\"}}]', '', 1661757188, 1710990175),
2024-10-10 06:08:54 +00:00
(5, 5, '系统风格', '{\"themeColorId\":3,\"topTextColor\":\"white\",\"navigationBarColor\":\"#A74BFD\",\"themeColor1\":\"#A74BFD\",\"themeColor2\":\"#CB60FF\",\"buttonColor\":\"white\"}', '', 1710410915, 1710990415);
2022-09-09 02:30:46 +00:00
DROP TABLE IF EXISTS `la_decorate_tabbar`;
CREATE TABLE `la_decorate_tabbar` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`name` varchar(20) NOT NULL DEFAULT '' COMMENT '导航名称',
`selected` varchar(200) NOT NULL DEFAULT '' COMMENT '未选图标',
`unselected` varchar(200) NOT NULL DEFAULT '' COMMENT '已选图标',
2024-10-10 06:08:54 +00:00
`link` varchar(200) DEFAULT NULL COMMENT '链接地址',
`is_show` tinyint(255) unsigned NOT NULL DEFAULT '1' COMMENT '显示状态',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
2022-09-09 02:30:46 +00:00
PRIMARY KEY (`id`) USING BTREE
2024-10-10 06:08:54 +00:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='装修底部导航表';
2024-10-10 06:08:54 +00:00
INSERT INTO `la_decorate_tabbar` (`id`, `name`, `selected`, `unselected`, `link`, `is_show`, `create_time`, `update_time`) VALUES
(1, '首页', '/api/static/tabbar_home_sel.png', '/api/static/tabbar_home.png', '{\"path\":\"/pages/index/index\",\"name\":\"商城首页\",\"type\":\"shop\"}', 1, 1662688157, 1662688157),
(2, '资讯', '/api/static/tabbar_text_sel.png', '/api/static/tabbar_text.png', '{\"path\":\"/pages/news/news\",\"name\":\"文章资讯\",\"type\":\"shop\",\"canTab\":\"1\"}', 1, 1662688157, 1662688157),
(3, '我的', '/api/static/tabbar_me_sel.png', '/api/static/tabbar_me.png', '{\"path\":\"/pages/user/user\",\"name\":\"个人中心\",\"type\":\"shop\",\"canTab\":\"1\"}', 1, 1662688157, 1662688157);
2022-09-09 02:30:46 +00:00
2024-09-02 16:39:17 +00:00
DROP TABLE IF EXISTS `la_dept`;
CREATE TABLE `la_dept` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
`name` varchar(30) NOT NULL DEFAULT '' COMMENT '部门名称',
`pid` bigint(20) NOT NULL DEFAULT '0' COMMENT '上级部门id',
`sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
`leader` varchar(64) DEFAULT NULL COMMENT '负责人',
`mobile` varchar(16) DEFAULT NULL COMMENT '联系电话',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '部门状态0停用 1正常',
`create_time` int(10) NOT NULL COMMENT '创建时间',
`update_time` int(10) DEFAULT NULL COMMENT '修改时间',
`delete_time` int(10) DEFAULT NULL COMMENT '删除时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='部门表';
INSERT INTO `la_dept` (`id`, `name`, `pid`, `sort`, `leader`, `mobile`, `status`, `create_time`, `update_time`, `delete_time`) VALUES
(1, '公司', 0, 0, 'boss', '12345698745', 1, 1650592684, 1653640368, NULL);
2024-10-10 06:08:54 +00:00
DROP TABLE IF EXISTS `la_dev_crontab`;
CREATE TABLE `la_dev_crontab` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(32) NOT NULL COMMENT '定时任务名称',
`type` tinyint(1) NOT NULL COMMENT '类型 1-定时任务',
`system` tinyint(4) DEFAULT '0' COMMENT '是否系统任务 0-否 1-是',
`remark` varchar(255) DEFAULT '' COMMENT '备注',
`command` varchar(64) NOT NULL COMMENT '命令内容',
`params` varchar(64) DEFAULT '' COMMENT '参数',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态 1-运行 2-停止 3-错误',
`expression` varchar(64) NOT NULL COMMENT '运行规则',
`error` varchar(256) DEFAULT NULL COMMENT '运行失败原因',
`last_time` int(11) DEFAULT NULL COMMENT '最后执行时间',
`time` varchar(64) DEFAULT '0' COMMENT '实时执行时长',
`max_time` varchar(64) DEFAULT '0' COMMENT '最大执行时长',
`create_time` int(10) DEFAULT NULL COMMENT '创建时间',
`update_time` int(10) DEFAULT NULL COMMENT '更新时间',
`delete_time` int(10) DEFAULT NULL COMMENT '删除时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='计划任务表';
2023-04-03 08:13:07 +00:00
DROP TABLE IF EXISTS `la_dev_pay_config`;
CREATE TABLE `la_dev_pay_config` (
2024-10-10 06:08:54 +00:00
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(32) NOT NULL DEFAULT '' COMMENT '模版名称',
2024-10-10 06:08:54 +00:00
`pay_way` tinyint(1) NOT NULL COMMENT '支付方式:1-余额支付;2-微信支付;3-支付宝支付;',
`config` text COMMENT '对应支付配置(json字符串)',
`icon` varchar(255) DEFAULT NULL COMMENT '图标',
`sort` int(5) DEFAULT NULL COMMENT '排序',
`remark` varchar(255) DEFAULT NULL COMMENT '备注',
2023-04-03 08:13:07 +00:00
PRIMARY KEY (`id`) USING BTREE
2024-10-10 06:08:54 +00:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
2024-10-10 06:08:54 +00:00
INSERT INTO `la_dev_pay_config` (`id`, `name`, `pay_way`, `config`, `icon`, `sort`, `remark`) VALUES
2024-10-30 16:20:37 +00:00
(1, '余额支付', 1, '', '/api/static/balance_pay.png', 128, '余额支付备注'),
(2, '微信支付', 2, '{\"interface_version\":\"v3\",\"merchant_type\":\"ordinary_merchant\",\"mch_id\":\"**\",\"pay_sign_key\":\"**\",\"apiclient_cert\":\"**\",\"apiclient_key\":\"**\"}', '/api/static/wechat_pay.png', 123, '微信支付备注'),
(3, '支付宝支付', 3, '{\"mode\":\"normal_mode\",\"merchant_type\":\"ordinary_merchant\",\"app_id\":\"**\",\"private_key\":\"**\",\"ali_public_key\":\"**\"}', '/api/static/ali_pay.png', 123, '支付宝支付');
2023-04-03 08:13:07 +00:00
DROP TABLE IF EXISTS `la_dev_pay_way`;
CREATE TABLE `la_dev_pay_way` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
2024-10-10 06:08:54 +00:00
`pay_config_id` int(11) NOT NULL COMMENT '支付配置ID',
`scene` tinyint(1) NOT NULL COMMENT '场景:1-微信小程序;2-微信公众号;3-H5;4-PC;5-APP;',
`is_default` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否默认支付:0-否;1-是;',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态:0-关闭;1-开启;',
2023-04-03 08:13:07 +00:00
PRIMARY KEY (`id`) USING BTREE
2024-10-10 06:08:54 +00:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
INSERT INTO `la_dev_pay_way` (`id`, `pay_config_id`, `scene`, `is_default`, `status`) VALUES
(1, 1, 1, 0, 1),
(2, 2, 1, 1, 1),
(3, 1, 2, 0, 1),
(4, 2, 2, 1, 1),
(5, 1, 3, 0, 1),
2024-10-10 06:08:54 +00:00
(6, 2, 3, 1, 1),
(7, 3, 3, 0, 1),
(8, 3, 2, 0, 1);
2023-04-03 08:13:07 +00:00
2022-08-17 09:34:58 +00:00
DROP TABLE IF EXISTS `la_dict_data`;
CREATE TABLE `la_dict_data` (
2024-10-10 06:08:54 +00:00
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
`name` varchar(255) NOT NULL COMMENT '数据名称',
`value` varchar(255) NOT NULL COMMENT '数据值',
`type_id` int(11) NOT NULL COMMENT '字典类型id',
`type_value` varchar(255) NOT NULL COMMENT '字典类型',
`sort` int(10) DEFAULT '0' COMMENT '排序值',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态 0-停用 1-正常',
`remark` varchar(255) DEFAULT '' COMMENT '备注',
`create_time` int(10) NOT NULL COMMENT '创建时间',
`update_time` int(10) DEFAULT NULL COMMENT '修改时间',
`delete_time` int(10) DEFAULT NULL COMMENT '删除时间',
2022-05-20 02:35:28 +00:00
PRIMARY KEY (`id`) USING BTREE
2024-10-10 06:08:54 +00:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='字典数据表';
INSERT INTO `la_dict_data` (`id`, `name`, `value`, `type_id`, `type_value`, `sort`, `status`, `remark`, `create_time`, `update_time`, `delete_time`) VALUES
(1, '隐藏', '0', 1, 'show_status', 0, 1, '', 1656381543, 1656381543, NULL),
(2, '显示', '1', 1, 'show_status', 0, 1, '', 1656381550, 1656381550, NULL),
(3, '进行中', '0', 2, 'business_status', 0, 1, '', 1656381410, 1656381410, NULL),
(4, '成功', '1', 2, 'business_status', 0, 1, '', 1656381437, 1656381437, NULL),
(5, '失败', '2', 2, 'business_status', 0, 1, '', 1656381449, 1656381449, NULL),
(6, '待处理', '0', 3, 'event_status', 0, 1, '', 1656381212, 1656381212, NULL),
(7, '已处理', '1', 3, 'event_status', 0, 1, '', 1656381315, 1656381315, NULL),
(8, '拒绝处理', '2', 3, 'event_status', 0, 1, '', 1656381331, 1656381331, NULL),
(9, '禁用', '1', 4, 'system_disable', 0, 1, '', 1656312030, 1656312030, NULL),
(10, '正常', '0', 4, 'system_disable', 0, 1, '', 1656312040, 1656312040, NULL),
(11, '未知', '0', 5, 'sex', 0, 1, '', 1656062988, 1656062988, NULL),
(12, '', '1', 5, 'sex', 0, 1, '', 1656062999, 1656062999, NULL),
(13, '', '2', 5, 'sex', 0, 1, '', 1656063009, 1656063009, NULL);
2022-06-28 02:00:25 +00:00
2022-08-17 09:34:58 +00:00
DROP TABLE IF EXISTS `la_dict_type`;
CREATE TABLE `la_dict_type` (
2024-10-10 06:08:54 +00:00
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '字典名称',
`type` varchar(255) NOT NULL DEFAULT '' COMMENT '字典类型名称',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态 0-停用 1-正常',
`remark` varchar(255) DEFAULT '' COMMENT '备注',
`create_time` int(10) NOT NULL COMMENT '创建时间',
`update_time` int(10) DEFAULT NULL COMMENT '修改时间',
`delete_time` int(10) DEFAULT NULL COMMENT '删除时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='字典类型表';
INSERT INTO `la_dict_type` (`id`, `name`, `type`, `status`, `remark`, `create_time`, `update_time`, `delete_time`) VALUES
(1, '显示状态', 'show_status', 1, '', 1656381520, 1656381520, NULL),
(2, '业务状态', 'business_status', 1, '', 1656381393, 1656381393, NULL),
(3, '事件状态', 'event_status', 1, '', 1656381075, 1656381075, NULL),
(4, '禁用状态', 'system_disable', 1, '', 1656311838, 1656311838, NULL),
(5, '用户性别', 'sex', 1, '', 1656062946, 1656380925, NULL);
DROP TABLE IF EXISTS `la_file`;
CREATE TABLE `la_file` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`cid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '类目ID',
`source_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '上传者id',
`source` tinyint(1) NOT NULL DEFAULT '0' COMMENT '来源类型[0-后台,1-用户]',
`type` tinyint(2) unsigned NOT NULL DEFAULT '10' COMMENT '类型[10=图片, 20=视频]',
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '文件名称',
`uri` varchar(200) NOT NULL COMMENT '文件路径',
`create_time` int(10) unsigned DEFAULT NULL COMMENT '创建时间',
`update_time` int(10) DEFAULT NULL COMMENT '更新时间',
`delete_time` int(10) DEFAULT NULL COMMENT '删除时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='文件表';
DROP TABLE IF EXISTS `la_file_cate`;
CREATE TABLE `la_file_cate` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '父级ID',
`type` tinyint(2) unsigned NOT NULL DEFAULT '10' COMMENT '类型[10=图片20=视频30=文件]',
`name` varchar(32) NOT NULL DEFAULT '' COMMENT '分类名称',
`create_time` int(10) unsigned DEFAULT NULL COMMENT '创建时间',
`update_time` int(10) unsigned DEFAULT NULL COMMENT '更新时间',
`delete_time` int(10) unsigned DEFAULT NULL COMMENT '删除时间',
2022-08-17 09:34:58 +00:00
PRIMARY KEY (`id`) USING BTREE
2024-10-10 06:08:54 +00:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='文件分类表';
2022-05-20 02:35:28 +00:00
2022-08-17 09:34:58 +00:00
DROP TABLE IF EXISTS `la_gen_table`;
CREATE TABLE `la_gen_table` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`table_name` varchar(200) NOT NULL DEFAULT '' COMMENT '表名称',
`table_comment` varchar(200) NOT NULL DEFAULT '' COMMENT '表描述',
`sub_table_name` varchar(200) NOT NULL DEFAULT '' COMMENT '关联表名称',
`sub_table_fk` varchar(200) NOT NULL DEFAULT '' COMMENT '关联表外键',
`sub_table_fr` varchar(200) NOT NULL DEFAULT '' COMMENT '关联表主键',
`author_name` varchar(100) NOT NULL DEFAULT '' COMMENT '作者的名称',
`entity_name` varchar(100) NOT NULL DEFAULT '' COMMENT '实体的名称',
`module_name` varchar(60) NOT NULL DEFAULT '' COMMENT '生成模块名',
`function_name` varchar(60) NOT NULL DEFAULT '' COMMENT '生成功能名',
`tree_primary` varchar(60) NOT NULL DEFAULT '' COMMENT '树主键字段',
`tree_parent` varchar(60) NOT NULL DEFAULT '' COMMENT '树父级字段',
`tree_name` varchar(60) NOT NULL DEFAULT '' COMMENT '树显示字段',
`gen_tpl` varchar(20) NOT NULL DEFAULT 'crud' COMMENT '生成模板方式: [crud=单表, tree=树表]',
`gen_type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '生成代码方式: [0=zip压缩包, 1=自定义路径]',
`gen_path` varchar(200) NOT NULL DEFAULT '/' COMMENT '生成代码路径: [不填默认项目路径]',
`menu_status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '菜单状态: [1=自动构建, 2=手动添加]',
`menu_pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '菜单父级',
`menu_name` varchar(100) NOT NULL DEFAULT '' COMMENT '菜单名称',
`remarks` varchar(200) NOT NULL DEFAULT '' COMMENT '备注信息',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
2022-05-20 02:35:28 +00:00
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='代码生成业务表';
2022-05-20 02:35:28 +00:00
2022-08-17 09:34:58 +00:00
DROP TABLE IF EXISTS `la_gen_table_column`;
CREATE TABLE `la_gen_table_column` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '列主键',
`table_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '表外键',
`column_name` varchar(200) NOT NULL DEFAULT '' COMMENT '列名称',
`column_comment` varchar(200) NOT NULL DEFAULT '' COMMENT '列描述',
`column_length` varchar(5) DEFAULT '0' COMMENT '列长度',
`column_type` varchar(100) NOT NULL DEFAULT '' COMMENT '列类型 ',
`java_type` varchar(100) NOT NULL DEFAULT '' COMMENT 'JAVA类型',
`java_field` varchar(100) NOT NULL DEFAULT '' COMMENT 'JAVA字段',
`is_pk` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否主键: [1=是, 0=否]',
`is_increment` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否自增: [1=是, 0=否]',
`is_required` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否必填: [1=是, 0=否]',
`is_insert` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否插入字段: [1=是, 0=否]',
`is_edit` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否编辑字段: [1=是, 0=否]',
`is_list` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否列表字段: [1=是, 0=否]',
`is_query` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否查询字段: [1=是, 0=否]',
`query_type` varchar(30) NOT NULL DEFAULT 'EQ' COMMENT '查询方式: [等于、不等于、大于、小于、范围]',
`html_type` varchar(30) NOT NULL DEFAULT '' COMMENT '显示类型: [文本框、文本域、下拉框、复选框、单选框、日期控件]',
`dict_type` varchar(200) NOT NULL DEFAULT '' COMMENT '字典类型',
`sort` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '排序编号',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
2022-08-17 09:34:58 +00:00
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='代码生成字段表';
2022-08-17 09:34:58 +00:00
2022-09-09 02:30:46 +00:00
DROP TABLE IF EXISTS `la_hot_search`;
CREATE TABLE `la_hot_search` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`name` varchar(200) NOT NULL DEFAULT '' COMMENT '关键词',
`sort` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '排序号',
2024-10-10 06:08:54 +00:00
`create_time` int(10) DEFAULT NULL COMMENT '创建时间',
2022-09-09 02:30:46 +00:00
PRIMARY KEY (`id`) USING BTREE
2024-10-10 06:08:54 +00:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='热门搜索表';
2022-09-09 02:30:46 +00:00
2024-09-02 16:39:17 +00:00
DROP TABLE IF EXISTS `la_jobs`;
CREATE TABLE `la_jobs` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
`name` varchar(50) NOT NULL COMMENT '岗位名称',
`code` varchar(64) NOT NULL COMMENT '岗位编码',
`sort` int(11) DEFAULT '0' COMMENT '显示顺序',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态0停用 1正常',
`remark` varchar(500) DEFAULT NULL COMMENT '备注',
`create_time` int(10) NOT NULL COMMENT '创建时间',
`update_time` int(10) DEFAULT NULL COMMENT '修改时间',
`delete_time` int(10) DEFAULT NULL COMMENT '删除时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='岗位表';
2023-04-03 08:13:07 +00:00
2023-03-17 03:51:16 +00:00
DROP TABLE IF EXISTS `la_notice_record`;
CREATE TABLE `la_notice_record` (
2024-10-10 06:08:54 +00:00
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`user_id` int(10) unsigned NOT NULL COMMENT '用户id',
`title` varchar(50) NOT NULL DEFAULT '' COMMENT '标题',
`content` text NOT NULL COMMENT '内容',
`scene_id` int(10) unsigned DEFAULT '0' COMMENT '场景',
`read` tinyint(1) DEFAULT '0' COMMENT '已读状态;0-未读,1-已读',
`recipient` tinyint(1) DEFAULT '0' COMMENT '通知接收对象类型;1-会员;2-商家;3-平台;4-游客(未注册用户)',
`send_type` tinyint(1) DEFAULT '0' COMMENT '通知发送类型 1-系统通知 2-短信通知 3-微信模板 4-微信小程序',
`notice_type` tinyint(1) DEFAULT NULL COMMENT '通知类型 1-业务通知 2-验证码',
`extra` varchar(255) DEFAULT '' COMMENT '其他',
`create_time` int(10) DEFAULT NULL COMMENT '创建时间',
`update_time` int(10) DEFAULT NULL COMMENT '更新时间',
`delete_time` int(10) DEFAULT NULL COMMENT '删除时间',
2023-03-17 03:51:16 +00:00
PRIMARY KEY (`id`) USING BTREE
2024-10-10 06:08:54 +00:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='通知记录表';
2023-03-17 03:51:16 +00:00
2022-09-09 02:30:46 +00:00
DROP TABLE IF EXISTS `la_notice_setting`;
CREATE TABLE `la_notice_setting` (
2024-10-10 06:08:54 +00:00
`id` int(11) NOT NULL AUTO_INCREMENT,
`scene_id` int(10) NOT NULL COMMENT '场景id',
`scene_name` varchar(255) NOT NULL DEFAULT '' COMMENT '场景名称',
`scene_desc` varchar(255) NOT NULL DEFAULT '' COMMENT '场景描述',
`recipient` tinyint(1) NOT NULL DEFAULT '1' COMMENT '接收者 1-用户 2-平台',
`type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '通知类型: 1-业务通知 2-验证码',
`system_notice` text COMMENT '系统通知设置',
`sms_notice` text COMMENT '短信通知设置',
`oa_notice` text COMMENT '公众号通知设置',
`mnp_notice` text COMMENT '小程序通知设置',
2024-10-10 06:08:54 +00:00
`support` char(10) NOT NULL DEFAULT '' COMMENT '支持的发送类型 1-系统通知 2-短信通知 3-微信模板消息 4-小程序提醒',
`update_time` int(10) DEFAULT NULL COMMENT '更新时间',
2022-09-09 02:30:46 +00:00
PRIMARY KEY (`id`) USING BTREE
2024-10-10 06:08:54 +00:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='通知设置表';
INSERT INTO `la_notice_setting` (`id`, `scene_id`, `scene_name`, `scene_desc`, `recipient`, `type`, `system_notice`, `sms_notice`, `oa_notice`, `mnp_notice`, `support`, `update_time`) VALUES
(1, 101, '登录验证码', '用户手机号码登录时发送', 1, 2, '{\"type\":\"system\",\"title\":\"\",\"content\":\"\",\"status\":\"0\",\"is_show\":\"\",\"tips\":[\"可选变量 验证码:code\"]}', '{\"type\":\"sms\",\"template_id\":\"SMS_123456\",\"content\":\"您正在登录,验证码${code}切勿将验证码泄露于他人本条验证码有效期5分钟。\",\"status\":\"1\",\"is_show\":\"1\"}', '{\"type\":\"oa\",\"template_id\":\"\",\"template_sn\":\"\",\"name\":\"\",\"first\":\"\",\"remark\":\"\",\"tpl\":[],\"status\":\"0\",\"is_show\":\"\",\"tips\":[\"可选变量 验证码:code\",\"配置路径:小程序后台 > 功能 > 订阅消息\"]}', '{\"type\":\"mnp\",\"template_id\":\"\",\"template_sn\":\"\",\"name\":\"\",\"tpl\":[],\"status\":\"0\",\"is_show\":\"\",\"tips\":[\"可选变量 验证码:code\",\"配置路径:小程序后台 > 功能 > 订阅消息\"]}', '2', NULL),
(2, 102, '绑定手机验证码', '用户绑定手机号码时发送', 1, 2, '{\"type\":\"system\",\"title\":\"\",\"content\":\"\",\"status\":\"0\",\"is_show\":\"\"}', '{\"type\":\"sms\",\"template_id\":\"SMS_123456\",\"content\":\"您正在绑定手机号,验证码${code}切勿将验证码泄露于他人本条验证码有效期5分钟。\",\"status\":\"1\",\"is_show\":\"1\"}', '{\"type\":\"oa\",\"template_id\":\"\",\"template_sn\":\"\",\"name\":\"\",\"first\":\"\",\"remark\":\"\",\"tpl\":[],\"status\":\"0\",\"is_show\":\"\"}', '{\"type\":\"mnp\",\"template_id\":\"\",\"template_sn\":\"\",\"name\":\"\",\"tpl\":[],\"status\":\"0\",\"is_show\":\"\"}', '2', NULL),
(3, 103, '变更手机验证码', '用户变更手机号码时发送', 1, 2, '{\"type\":\"system\",\"title\":\"\",\"content\":\"\",\"status\":\"0\",\"is_show\":\"\",\"tips\":[\"可选变量 验证码:code\"]}', '{\"type\":\"sms\",\"template_id\":\"SMS_123456\",\"content\":\"您正在变更手机号,验证码${code}切勿将验证码泄露于他人本条验证码有效期5分钟。\",\"status\":\"1\",\"is_show\":\"1\"}', '{\"type\":\"oa\",\"template_id\":\"\",\"template_sn\":\"\",\"name\":\"\",\"first\":\"\",\"remark\":\"\",\"tpl\":[],\"status\":\"0\",\"is_show\":\"\",\"tips\":[\"可选变量 验证码:code\",\"配置路径:小程序后台 > 功能 > 订阅消息\"]}', '{\"type\":\"mnp\",\"template_id\":\"\",\"template_sn\":\"\",\"name\":\"\",\"tpl\":[],\"status\":\"0\",\"is_show\":\"\",\"tips\":[\"可选变量 验证码:code\",\"配置路径:小程序后台 > 功能 > 订阅消息\"]}', '2', NULL),
(4, 104, '找回登录密码验证码', '用户找回登录密码号码时发送', 1, 2, '{\"type\":\"system\",\"title\":\"\",\"content\":\"\",\"status\":\"0\",\"is_show\":\"\",\"tips\":[\"可选变量 验证码:code\"]}', '{\"type\":\"sms\",\"template_id\":\"SMS_123456\",\"content\":\"您正在找回登录密码,验证码${code}切勿将验证码泄露于他人本条验证码有效期5分钟。\",\"status\":\"1\",\"is_show\":\"1\"}', '{\"type\":\"oa\",\"template_id\":\"\",\"template_sn\":\"\",\"name\":\"\",\"first\":\"\",\"remark\":\"\",\"tpl\":[],\"status\":\"0\",\"is_show\":\"\",\"tips\":[\"可选变量 验证码:code\",\"配置路径:小程序后台 > 功能 > 订阅消息\"]}', '{\"type\":\"mnp\",\"template_id\":\"\",\"template_sn\":\"\",\"name\":\"\",\"tpl\":[],\"status\":\"0\",\"is_show\":\"\",\"tips\":[\"可选变量 验证码:code\",\"配置路径:小程序后台 > 功能 > 订阅消息\"]}', '2', NULL);
DROP TABLE IF EXISTS `la_official_account_reply`;
CREATE TABLE `la_official_account_reply` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(64) NOT NULL DEFAULT '' COMMENT '规则名称',
`keyword` varchar(64) NOT NULL DEFAULT '' COMMENT '关键词',
2024-10-10 06:08:54 +00:00
`reply_type` tinyint(1) NOT NULL COMMENT '回复类型 1-关注回复 2-关键字回复 3-默认回复',
`matching_type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '匹配方式1-全匹配2-模糊匹配',
`content_type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '内容类型1-文本',
`content` text NOT NULL COMMENT '回复内容',
2024-10-10 06:08:54 +00:00
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '启动状态1-启动0-关闭',
`sort` int(11) unsigned NOT NULL DEFAULT '50' COMMENT '排序',
`create_time` int(10) DEFAULT NULL COMMENT '创建时间',
`update_time` int(10) DEFAULT NULL COMMENT '更新时间',
`delete_time` int(10) DEFAULT NULL COMMENT '删除时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='公众号消息回调表';
DROP TABLE IF EXISTS `la_operation_log`;
CREATE TABLE `la_operation_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`admin_id` int(11) NOT NULL COMMENT '管理员ID',
`admin_name` varchar(16) NOT NULL DEFAULT '' COMMENT '管理员名称',
`account` varchar(16) NOT NULL DEFAULT '' COMMENT '管理员账号',
`action` varchar(64) DEFAULT '' COMMENT '操作名称',
`type` varchar(8) NOT NULL COMMENT '请求方式',
`url` varchar(600) NOT NULL COMMENT '访问链接',
`params` text COMMENT '请求数据',
`result` text COMMENT '请求结果',
`ip` varchar(39) NOT NULL DEFAULT '' COMMENT 'ip地址',
`create_time` int(10) DEFAULT NULL COMMENT '创建时间',
2022-09-14 02:40:07 +00:00
PRIMARY KEY (`id`) USING BTREE
2024-10-10 06:08:54 +00:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统日志表';
2022-09-14 02:40:07 +00:00
2023-04-03 08:13:07 +00:00
DROP TABLE IF EXISTS `la_recharge_order`;
CREATE TABLE `la_recharge_order` (
2024-10-10 06:08:54 +00:00
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
`sn` varchar(64) NOT NULL COMMENT '订单编号',
`user_id` int(11) NOT NULL COMMENT '用户id',
`pay_sn` varchar(255) DEFAULT '' COMMENT '支付编号-冗余字段,针对微信同一主体不同客户端支付需用不同订单号预留。',
`pay_way` tinyint(2) NOT NULL DEFAULT '2' COMMENT '支付方式 2-微信支付 3-支付宝支付',
`pay_status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '支付状态0-待支付1-已支付',
`pay_time` int(10) DEFAULT NULL COMMENT '支付时间',
`order_amount` decimal(10,2) NOT NULL COMMENT '充值金额',
`order_terminal` tinyint(1) DEFAULT '1' COMMENT '终端',
`transaction_id` varchar(128) DEFAULT NULL COMMENT '第三方平台交易流水号',
`refund_status` tinyint(1) DEFAULT '0' COMMENT '退款状态 0-未退款 1-已退款',
`refund_transaction_id` varchar(255) DEFAULT NULL COMMENT '退款交易流水号',
`create_time` int(10) DEFAULT NULL COMMENT '创建时间',
`update_time` int(10) DEFAULT NULL COMMENT '更新时间',
`delete_time` int(10) DEFAULT NULL COMMENT '删除时间',
2023-04-03 08:13:07 +00:00
PRIMARY KEY (`id`) USING BTREE
2024-10-10 06:08:54 +00:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
2023-04-03 08:13:07 +00:00
DROP TABLE IF EXISTS `la_refund_log`;
CREATE TABLE `la_refund_log` (
2024-10-10 06:08:54 +00:00
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
`sn` varchar(32) DEFAULT NULL COMMENT '编号',
2024-10-10 06:08:54 +00:00
`record_id` int(11) NOT NULL COMMENT '退款记录id',
`user_id` int(11) NOT NULL DEFAULT '0' COMMENT '关联用户',
`handle_id` int(11) NOT NULL DEFAULT '0' COMMENT '处理人id管理员id',
`order_amount` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '订单总的应付款金额,冗余字段',
`refund_amount` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '本次退款金额',
2024-10-10 06:08:54 +00:00
`refund_status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '退款状态0退款中1退款成功2退款失败',
`refund_msg` text COMMENT '退款信息',
`create_time` int(10) unsigned DEFAULT '0' COMMENT '创建时间',
2024-10-10 06:08:54 +00:00
`update_time` int(10) DEFAULT NULL COMMENT '更新时间',
2023-04-03 08:13:07 +00:00
PRIMARY KEY (`id`) USING BTREE
2024-10-10 06:08:54 +00:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
2023-04-03 08:13:07 +00:00
DROP TABLE IF EXISTS `la_refund_record`;
CREATE TABLE `la_refund_record` (
2023-04-03 08:13:07 +00:00
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
`sn` varchar(32) NOT NULL DEFAULT '' COMMENT '退款编号',
2024-10-10 06:08:54 +00:00
`user_id` int(11) NOT NULL DEFAULT '0' COMMENT '关联用户',
`order_id` int(11) NOT NULL DEFAULT '0' COMMENT '来源订单id',
`order_sn` varchar(32) NOT NULL COMMENT '来源单号',
`order_type` varchar(255) DEFAULT 'order' COMMENT '订单来源 order-商品订单 recharge-充值订单',
`order_amount` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '订单总的应付款金额,冗余字段',
`refund_amount` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '本次退款金额',
2024-10-10 06:08:54 +00:00
`transaction_id` varchar(255) DEFAULT NULL COMMENT '第三方平台交易流水号',
`refund_way` tinyint(1) NOT NULL DEFAULT '1' COMMENT '退款方式 1-线上退款 2-线下退款',
`refund_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '退款类型 1-后台退款',
`refund_status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '退款状态0退款中1退款成功2退款失败',
`create_time` int(10) unsigned DEFAULT '0' COMMENT '创建时间',
2024-10-10 06:08:54 +00:00
`update_time` int(10) DEFAULT NULL COMMENT '更新时间',
2022-05-20 02:35:28 +00:00
PRIMARY KEY (`id`) USING BTREE
2024-10-10 06:08:54 +00:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
2022-08-17 09:34:58 +00:00
2024-10-10 06:08:54 +00:00
DROP TABLE IF EXISTS `la_sms_log`;
CREATE TABLE `la_sms_log` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
`scene_id` int(11) NOT NULL COMMENT '场景id',
`mobile` varchar(11) NOT NULL COMMENT '手机号码',
`content` varchar(255) NOT NULL COMMENT '发送内容',
`code` varchar(32) DEFAULT NULL COMMENT '发送关键字(注册、找回密码)',
`is_verify` tinyint(1) DEFAULT '0' COMMENT '是否已验证0-否1-是',
`check_num` int(5) DEFAULT '0' COMMENT '验证次数',
`send_status` tinyint(1) NOT NULL COMMENT '发送状态0-发送中1-发送成功2-发送失败',
`send_time` int(10) NOT NULL COMMENT '发送时间',
`results` text COMMENT '短信结果',
`create_time` int(10) DEFAULT NULL COMMENT '创建时间',
`update_time` int(10) DEFAULT NULL COMMENT '更新时间',
`delete_time` int(10) DEFAULT NULL COMMENT '删除时间',
PRIMARY KEY (`id`) USING BTREE
2024-10-10 06:08:54 +00:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='短信记录表';
2024-09-02 16:39:17 +00:00
DROP TABLE IF EXISTS `la_system_menu`;
CREATE TABLE `la_system_menu` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '上级菜单',
`type` char(2) NOT NULL DEFAULT '' COMMENT '权限类型: M=目录C=菜单A=按钮',
`name` varchar(100) NOT NULL DEFAULT '' COMMENT '菜单名称',
`icon` varchar(100) NOT NULL DEFAULT '' COMMENT '菜单图标',
`sort` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '菜单排序',
`perms` varchar(100) NOT NULL DEFAULT '' COMMENT '权限标识',
`paths` varchar(100) NOT NULL DEFAULT '' COMMENT '路由地址',
`component` varchar(200) NOT NULL DEFAULT '' COMMENT '前端组件',
`selected` varchar(200) NOT NULL DEFAULT '' COMMENT '选中路径',
`params` varchar(200) NOT NULL DEFAULT '' COMMENT '路由参数',
`is_cache` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否缓存: 0=否, 1=是',
`is_show` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否显示: 0=否, 1=是',
`is_disable` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否禁用: 0=否, 1=是',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统菜单表';
INSERT INTO `la_system_menu` (`id`, `pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES
(4, 0, 'M', '权限管理', 'el-icon-Lock', 300, '', 'permission', '', '', '', 0, 1, 0, 1656664556, 1710472802),
(5, 0, 'C', '工作台', 'el-icon-Monitor', 1000, 'workbench/index', 'workbench', 'workbench/index', '', '', 1, 1, 0, 1656664793, 1664354981),
2024-09-02 16:39:17 +00:00
(6, 4, 'C', '菜单', 'el-icon-Operation', 100, 'auth.menu/lists', 'menu', 'permission/menu/index', '', '', 1, 1, 0, 1656664960, 1710472994),
(7, 4, 'C', '管理员', 'local-icon-shouyiren', 80, 'auth.admin/lists', 'admin', 'permission/admin/index', '', '', 1, 1, 0, 1656901567, 1710473013),
(8, 4, 'C', '角色', 'el-icon-Female', 90, 'auth.role/lists', 'role', 'permission/role/index', '', '', 1, 1, 0, 1656901660, 1710473000),
2024-09-02 16:39:17 +00:00
(12, 8, 'A', '新增', '', 1, 'auth.role/add', '', '', '', '', 0, 1, 0, 1657001790, 1663750625),
(14, 8, 'A', '编辑', '', 1, 'auth.role/edit', '', '', '', '', 0, 1, 0, 1657001924, 1663750631),
(15, 8, 'A', '删除', '', 1, 'auth.role/delete', '', '', '', '', 0, 1, 0, 1657001982, 1663750637),
(16, 6, 'A', '新增', '', 1, 'auth.menu/add', '', '', '', '', 0, 1, 0, 1657072523, 1663750565),
(17, 6, 'A', '编辑', '', 1, 'auth.menu/edit', '', '', '', '', 0, 1, 0, 1657073955, 1663750570),
(18, 6, 'A', '删除', '', 1, 'auth.menu/delete', '', '', '', '', 0, 1, 0, 1657073987, 1663750578),
(19, 7, 'A', '新增', '', 1, 'auth.admin/add', '', '', '', '', 0, 1, 0, 1657074035, 1663750596),
(20, 7, 'A', '编辑', '', 1, 'auth.admin/edit', '', '', '', '', 0, 1, 0, 1657074071, 1663750603),
(21, 7, 'A', '删除', '', 1, 'auth.admin/delete', '', '', '', '', 0, 1, 0, 1657074108, 1663750609),
(23, 28, 'M', '开发工具', 'el-icon-EditPen', 40, '', 'dev_tools', '', '', '', 0, 1, 0, 1657097744, 1710473127),
(24, 23, 'C', '代码生成器', 'el-icon-DocumentAdd', 1, 'tools.generator/generateTable', 'code', 'dev_tools/code/index', '', '',1, 1, 0, 1657098110, 1658989423),
2024-09-02 16:39:17 +00:00
(25, 0, 'M', '组织管理', 'el-icon-OfficeBuilding', 400, '', 'organization', '', '', '', 0, 1, 0, 1657099914, 1710472797),
(26, 25, 'C', '部门管理', 'el-icon-Coordinate', 100, 'dept.dept/lists', 'department', 'organization/department/index', '', '', 1, 1, 0, 1657099989, 1710472962),
(27, 25, 'C', '岗位管理', 'el-icon-PriceTag', 90, 'dept.jobs/lists', 'post', 'organization/post/index', '', '', 1, 1, 0, 1657100044, 1710472967),
2024-09-02 16:39:17 +00:00
(28, 0, 'M', '系统设置', 'el-icon-Setting', 200, '', 'setting', '', '', '', 0, 1, 0, 1657100164, 1710472807),
(29, 28, 'M', '网站设置', 'el-icon-Basketball', 100, '', 'website', '', '', '', 0, 1, 0, 1657100230, 1710473049),
(30, 29, 'C', '网站信息', '', 1, 'setting.web.web_setting/getWebsite', 'information', 'setting/website/information', '', '', 1, 1, 0, 1657100306, 1657164412),
(31, 29, 'C', '网站备案', '', 1, 'setting.web.web_setting/getCopyright', 'filing', 'setting/website/filing', '', '', 1, 1, 0, 1657100434, 1657164723),
(32, 29, 'C', '政策协议', '', 1, 'setting.web.web_setting/getAgreement', 'protocol', 'setting/website/protocol', '', '', 1, 1, 0, 1657100571, 1657164770),
(33, 28, 'C', '存储设置', 'el-icon-FolderOpened', 70, 'setting.storage/lists', 'storage', 'setting/storage/index', '', '', 1, 1, 0, 1657160959, 1710473095),
(34, 23, 'C', '字典管理', 'el-icon-Box', 1, 'setting.dict.dict_type/lists', 'dict', 'setting/dict/type/index', '', '', 1, 1, 0, 1657161211, 1663225935),
2024-09-02 16:39:17 +00:00
(35, 28, 'M', '系统维护', 'el-icon-SetUp', 50, '', 'system', '', '', '', 0, 1, 0, 1657161569, 1710473122),
(36, 35, 'C', '系统日志', '', 90, 'setting.system.log/lists', 'journal', 'setting/system/journal', '', '', 1, 1, 0, 1657161696, 1710473253),
(37, 35, 'C', '系统缓存', '', 80, '', 'cache', 'setting/system/cache', '', '', 1, 1, 0, 1657161896, 1710473258),
(38, 35, 'C', '系统环境', '', 70, 'setting.system.system/info', 'environment', 'setting/system/environment', '', '', 1, 1, 0, 1657162000, 1710473265),
2024-09-02 16:39:17 +00:00
(39, 24, 'A', '导入数据表', '', 1, 'tools.generator/selectTable', '', '', '', '', 0, 1, 0, 1657162736, 1657162736),
(40, 24, 'A', '代码生成', '', 1, 'tools.generator/generate', '', '', '', '', 0, 1, 0, 1657162806, 1657162806),
(41, 23, 'C', '编辑数据表', '', 1, 'tools.generator/edit', 'code/edit', 'dev_tools/code/edit', '/dev_tools/code', '', 1, 0, 0, 1657162866, 1663748668),
(42, 24, 'A', '同步表结构', '', 1, 'tools.generator/syncColumn', '', '', '', '', 0, 1, 0, 1657162934, 1657162934),
(43, 24, 'A', '删除数据表', '', 1, 'tools.generator/delete', '', '', '', '', 0, 1, 0, 1657163015, 1657163015),
(44, 24, 'A', '预览代码', '', 1, 'tools.generator/preview', '', '', '', '', 0, 1, 0, 1657163263, 1657163263),
(45, 26, 'A', '新增', '', 1, 'dept.dept/add', '', '', '', '', 0, 1, 0, 1657163548, 1663750492),
(46, 26, 'A', '编辑', '', 1, 'dept.dept/edit', '', '', '', '', 0, 1, 0, 1657163599, 1663750498),
(47, 26, 'A', '删除', '', 1, 'dept.dept/delete', '', '', '', '', 0, 1, 0, 1657163687, 1663750504),
(48, 27, 'A', '新增', '', 1, 'dept.jobs/add', '', '', '', '', 0, 1, 0, 1657163778, 1663750524),
(49, 27, 'A', '编辑', '', 1, 'dept.jobs/edit', '', '', '', '', 0, 1, 0, 1657163800, 1663750530),
(50, 27, 'A', '删除', '', 1, 'dept.jobs/delete', '', '', '', '', 0, 1, 0, 1657163820, 1663750535),
(51, 30, 'A', '保存', '', 1, 'setting.web.web_setting/setWebsite', '', '', '', '', 0, 1, 0, 1657164469, 1663750649),
(52, 31, 'A', '保存', '', 1, 'setting.web.web_setting/setCopyright', '', '', '', '', 0, 1, 0, 1657164692, 1663750657),
(53, 32, 'A', '保存', '', 1, 'setting.web.web_setting/setAgreement', '', '', '', '', 0, 1, 0, 1657164824, 1663750665),
(54, 33, 'A', '设置', '', 1, 'setting.storage/setup', '', '', '', '', 0, 1, 0, 1657165303, 1663750673),
(55, 34, 'A', '新增', '', 1, 'setting.dict.dict_type/add', '', '', '', '', 0, 1, 0, 1657166966, 1663750783),
(56, 34, 'A', '编辑', '', 1, 'setting.dict.dict_type/edit', '', '', '', '', 0, 1, 0, 1657166997, 1663750789),
(57, 34, 'A', '删除', '', 1, 'setting.dict.dict_type/delete', '', '', '', '', 0, 1, 0, 1657167038, 1663750796),
(58, 62, 'A', '新增', '', 1, 'setting.dict.dict_data/add', '', '', '', '', 0, 1, 0, 1657167317, 1663750758),
(59, 62, 'A', '编辑', '', 1, 'setting.dict.dict_data/edit', '', '', '', '', 0, 1, 0, 1657167371, 1663750751),
(60, 62, 'A', '删除', '', 1, 'setting.dict.dict_data/delete', '', '', '', '', 0, 1, 0, 1657167397, 1663750768),
(61, 37, 'A', '清除系统缓存', '', 1, 'setting.system.cache/clear', '', '', '', '', 0, 1, 0, 1657173837, 1657173939),
(62, 23, 'C', '字典数据管理', '', 1, 'setting.dict.dict_data/lists', 'dict/data', 'setting/dict/data/index', '/dev_tools/dict', '', 1, 0, 0, 1657174351, 1663745617),
(63, 158, 'M', '素材管理', 'el-icon-Picture', 0, '', 'material', '', '', '', 0, 1, 0, 1657507133, 1710472243),
(64, 63, 'C', '素材中心', 'el-icon-PictureRounded', 0, '', 'index', 'material/index', '', '', 1, 1, 0, 1657507296, 1664355653),
2024-09-02 16:39:17 +00:00
(66, 26, 'A', '详情', '', 0, 'dept.dept/detail', '', '', '', '', 0, 1, 0, 1663725459, 1663750516),
(67, 27, 'A', '详情', '', 0, 'dept.jobs/detail', '', '', '', '', 0, 1, 0, 1663725514, 1663750559),
(68, 6, 'A', '详情', '', 0, 'auth.menu/detail', '', '', '', '', 0, 1, 0, 1663725564, 1663750584),
(69, 7, 'A', '详情', '', 0, 'auth.admin/detail', '', '', '', '', 0, 1, 0, 1663725623, 1663750615),
(70, 158, 'M', '文章资讯', 'el-icon-ChatLineSquare', 90, '', 'article', '', '', '', 0, 1, 0, 1663749965, 1710471867),
(71, 70, 'C', '文章管理', 'el-icon-ChatDotSquare', 0, 'article.article/lists', 'lists', 'article/lists/index', '', '', 1, 1, 0, 1663750101, 1664354615),
(72, 70, 'C', '文章添加/编辑', '', 0, 'article.article/add:edit', 'lists/edit', 'article/lists/edit', '/article/lists', '', 1, 0, 0, 1663750153, 1664356275),
2024-09-02 16:39:17 +00:00
(73, 70, 'C', '文章栏目', 'el-icon-CollectionTag', 0, 'article.articleCate/lists', 'column', 'article/column/index', '', '', 1, 1, 0, 1663750287, 1664354678),
(74, 71, 'A', '新增', '', 0, 'article.article/add', '', '', '', '', 0, 1, 0, 1663750335, 1663750335),
(75, 71, 'A', '详情', '', 0, 'article.article/detail', '', '', '', '', 0, 1, 0, 1663750354, 1663750383),
(76, 71, 'A', '删除', '', 0, 'article.article/delete', '', '', '', '', 0, 1, 0, 1663750413, 1663750413),
(77, 71, 'A', '修改状态', '', 0, 'article.article/updateStatus', '', '', '', '', 0, 1, 0, 1663750442, 1663750442),
(78, 73, 'A', '添加', '', 0, 'article.articleCate/add', '', '', '', '', 0, 1, 0, 1663750483, 1663750483),
(79, 73, 'A', '删除', '', 0, 'article.articleCate/delete', '', '', '', '', 0, 1, 0, 1663750895, 1663750895),
(80, 73, 'A', '详情', '', 0, 'article.articleCate/detail', '', '', '', '', 0, 1, 0, 1663750913, 1663750913),
(81, 73, 'A', '修改状态', '', 0, 'article.articleCate/updateStatus', '', '', '', '', 0, 1, 0, 1663750936, 1663750936),
(82, 0, 'M', '渠道设置', 'el-icon-Message', 500, '', 'channel', '', '', '', 0, 1, 0, 1663754084, 1710472649),
(83, 82, 'C', 'h5设置', 'el-icon-Cellphone', 100, 'channel.web_page_setting/getConfig', 'h5', 'channel/h5', '', '', 1, 1, 0, 1663754158, 1710472929),
2024-09-02 16:39:17 +00:00
(84, 83, 'A', '保存', '', 0, 'channel.web_page_setting/setConfig', '', '', '', '', 0, 1, 0, 1663754259, 1663754259),
(85, 82, 'M', '微信公众号', 'local-icon-dingdan', 80, '', 'wx_oa', '', '', '', 0, 1, 0, 1663755470, 1710472946),
(86, 85, 'C', '公众号配置', '', 0, 'channel.official_account_setting/getConfig', 'config', 'channel/wx_oa/config', '', '', 1, 1, 0, 1663755663, 1664355450),
(87, 85, 'C', '菜单管理', '', 0, 'channel.official_account_menu/detail', 'menu', 'channel/wx_oa/menu', '', '', 1, 1, 0, 1663755767, 1664355456),
2024-09-02 16:39:17 +00:00
(88, 86, 'A', '保存', '', 0, 'channel.official_account_setting/setConfig', '', '', '', '', 0, 1, 0, 1663755799, 1663755799),
(89, 86, 'A', '保存并发布', '', 0, 'channel.official_account_menu/save', '', '', '', '', 0, 1, 0, 1663756490, 1663756490),
(90, 85, 'C', '关注回复', '', 0, 'channel.official_account_reply/lists', 'follow', 'channel/wx_oa/reply/follow_reply', '', '', 1, 1, 0, 1663818358, 1663818366),
(91, 85, 'C', '关键字回复', '', 0, '', 'keyword', 'channel/wx_oa/reply/keyword_reply', '', '',1, 1, 0, 1663818445, 1663818445),
(93, 85, 'C', '默认回复', '', 0, '', 'default', 'channel/wx_oa/reply/default_reply', '', '', 1, 1, 0, 1663818580, 1663818580),
(94, 82, 'C', '微信小程序', 'local-icon-weixin', 90, 'channel.mnp_settings/getConfig', 'weapp', 'channel/weapp', '', '', 1, 1, 0, 1663831396, 1710472941),
2024-09-02 16:39:17 +00:00
(95, 94, 'A', '保存', '', 0, 'channel.mnp_settings/setConfig', '', '', '', '', 0, 1, 0, 1663831436, 1663831436),
(96, 0, 'M', '装修管理', 'el-icon-Brush', 600, '', 'decoration', '', '', '', 0, 1, 0, 1663834825, 1710472099),
(97, 175, 'C', '页面装修', 'el-icon-CopyDocument', 100, 'decorate.page/detail', 'pages', 'decoration/pages/index', '', '', 1, 1, 0, 1663834879, 1710929256),
2024-09-02 16:39:17 +00:00
(98, 97, 'A', '保存', '', 0, 'decorate.page/save', '', '', '', '', 0, 1, 0, 1663834956, 1663834956),
(99, 175, 'C', '底部导航', 'el-icon-Position', 90, 'decorate.tabbar/detail', 'tabbar', 'decoration/tabbar', '', '', 1, 1, 0, 1663835004, 1710929262),
2024-09-02 16:39:17 +00:00
(100, 99, 'A', '保存', '', 0, 'decorate.tabbar/save', '', '', '', '', 0, 1, 0, 1663835018, 1663835018),
(101, 158, 'M', '消息管理', 'el-icon-ChatDotRound', 80, '', 'message', '', '', '', 0, 1, 0, 1663838602, 1710471874),
(102, 101, 'C', '通知设置', '', 0, 'notice.notice/settingLists', 'notice', 'message/notice/index', '', '', 1, 1, 0, 1663839195, 1663839195),
2024-09-02 16:39:17 +00:00
(103, 102, 'A', '详情', '', 0, 'notice.notice/detail', '', '', '', '', 0, 1, 0, 1663839537, 1663839537),
(104, 101, 'C', '通知设置编辑', '', 0, 'notice.notice/set', 'notice/edit', 'message/notice/edit', '/message/notice', '', 1, 0, 0, 1663839873, 1663898477),
2024-09-02 16:39:17 +00:00
(105, 71, 'A', '编辑', '', 0, 'article.article/edit', '', '', '', '', 0, 1, 0, 1663840043, 1663840053),
(107, 101, 'C', '短信设置', '', 0, 'notice.sms_config/getConfig', 'short_letter', 'message/short_letter/index', '', '', 1, 1, 0, 1663898591, 1664355708),
2024-09-02 16:39:17 +00:00
(108, 107, 'A', '设置', '', 0, 'notice.sms_config/setConfig', '', '', '', '', 0, 1, 0, 1663898644, 1663898644),
(109, 107, 'A', '详情', '', 0, 'notice.sms_config/detail', '', '', '', '', 0, 1, 0, 1663898661, 1663898661),
(110, 28, 'C', '热门搜索', 'el-icon-Search', 60, 'setting.hot_search/getConfig', 'search', 'setting/search/index', '', '', 1, 1, 0, 1663901821, 1710473109),
2024-09-02 16:39:17 +00:00
(111, 110, 'A', '保存', '', 0, 'setting.hot_search/setConfig', '', '', '', '', 0, 1, 0, 1663901856, 1663901856),
(112, 28, 'M', '用户设置', 'local-icon-keziyuyue', 90, '', 'user', '', '', '', 0, 1, 0, 1663903302, 1710473056),
(113, 112, 'C', '用户设置', '', 0, 'setting.user.user/getConfig', 'setup', 'setting/user/setup', '', '', 1, 1, 0, 1663903506, 1663903506),
2024-09-02 16:39:17 +00:00
(114, 113, 'A', '保存', '', 0, 'setting.user.user/setConfig', '', '', '', '', 0, 1, 0, 1663903522, 1663903522),
(115, 112, 'C', '登录注册', '', 0, 'setting.user.user/getRegisterConfig', 'login_register', 'setting/user/login_register', '', '', 1, 1, 0, 1663903832, 1663903832),
2024-09-02 16:39:17 +00:00
(116, 115, 'A', '保存', '', 0, 'setting.user.user/setRegisterConfig', '', '', '', '', 0, 1, 0, 1663903852, 1663903852),
(117, 0, 'M', '用户管理', 'el-icon-User', 900, '', 'consumer', '', '', '', 0, 1, 0, 1663904351, 1710472074),
(118, 117, 'C', '用户列表', 'local-icon-user_guanli', 100, 'user.user/lists', 'lists', 'consumer/lists/index', '', '', 1, 1, 0, 1663904392, 1710471845),
(119, 117, 'C', '用户详情', '', 90, 'user.user/detail', 'lists/detail', 'consumer/lists/detail', '/consumer/lists', '', 1, 0, 0, 1663904470, 1710471851),
2024-09-02 16:39:17 +00:00
(120, 119, 'A', '编辑', '', 0, 'user.user/edit', '', '', '', '', 0, 1, 0, 1663904499, 1663904499),
(140, 82, 'C', '微信开发平台', 'local-icon-notice_buyer', 70, 'channel.open_setting/getConfig', 'open_setting', 'channel/open_setting', '', '', 1, 1, 0, 1666085713, 1710472951),
2024-09-02 16:39:17 +00:00
(141, 140, 'A', '保存', '', 0, 'channel.open_setting/setConfig', '', '', '', '', 0, 1, 0, 1666085751, 1666085776),
(142, 176, 'C', 'PC端装修', 'el-icon-Monitor', 8, '', 'pc', 'decoration/pc', '', '', 0, 1, 0, 1668423284, 1710901602),
(143, 35, 'C', '定时任务', '', 100, 'crontab.crontab/lists', 'scheduled_task', 'setting/system/scheduled_task/index', '', '', 1, 1, 0, 1669357509, 1710473246),
(144, 35, 'C', '定时任务添加/编辑', '', 0, 'crontab.crontab/add:edit', 'scheduled_task/edit', 'setting/system/scheduled_task/edit', '/setting/system/scheduled_task', '', 1, 0, 0, 1669357670, 1669357765),
2024-09-02 16:39:17 +00:00
(145, 143, 'A', '添加', '', 0, 'crontab.crontab/add', '', '', '', '', 0, 1, 0, 1669358282, 1669358282),
(146, 143, 'A', '编辑', '', 0, 'crontab.crontab/edit', '', '', '', '', 0, 1, 0, 1669358303, 1669358303),
(147, 143, 'A', '删除', '', 0, 'crontab.crontab/delete', '', '', '', '', 0, 1, 0, 1669358334, 1669358334),
(148, 0, 'M', '模板示例', 'el-icon-SetUp', 100, '', 'template', '', '', '', 0, 1, 0, 1670206819, 1710472811),
(149, 148, 'M', '组件示例', 'el-icon-Coin', 0, '', 'component', '', '', '', 0, 1, 0, 1670207182, 1670207244),
(150, 149, 'C', '富文本', '', 90, '', 'rich_text', 'template/component/rich_text', '', '', 1, 1, 0, 1670207751, 1710473315),
(151, 149, 'C', '上传文件', '', 80, '', 'upload', 'template/component/upload', '', '', 1, 1, 0, 1670208925, 1710473322),
(152, 149, 'C', '图标', '', 100, '', 'icon', 'template/component/icon', '', '', 1, 1, 0, 1670230069, 1710473306),
(153, 149, 'C', '文件选择器', '', 60, '', 'file', 'template/component/file', '', '', 1, 1, 0, 1670232129, 1710473341),
(154, 149, 'C', '链接选择器', '', 50, '', 'link', 'template/component/link', '', '', 1, 1, 0, 1670292636, 1710473346),
(155, 149, 'C', '超出自动打点', '', 40, '', 'overflow', 'template/component/overflow', '', '', 1, 1, 0, 1670292883, 1710473351),
(156, 149, 'C', '悬浮input', '', 70, '', 'popover_input', 'template/component/popover_input', '', '', 1, 1, 0, 1670293336, 1710473329),
2024-09-02 16:39:17 +00:00
(157, 119, 'A', '余额调整', '', 0, 'user.user/adjustMoney', '', '', '', '', 0, 1, 0, 1677143088, 1677143088),
(158, 0, 'M', '应用管理', 'el-icon-Postcard', 800, '', 'app', '', '', '', 0, 1, 0, 1677143430, 1710472079),
(159, 158, 'C', '用户充值', 'local-icon-fukuan', 100, 'recharge.recharge/getConfig', 'recharge', 'app/recharge/index', '', '', 1, 1, 0, 1677144284, 1710471860),
2024-09-02 16:39:17 +00:00
(160, 159, 'A', '保存', '', 0, 'recharge.recharge/setConfig', '', '', '', '', 0, 1, 0, 1677145012, 1677145012),
(161, 28, 'M', '支付设置', 'local-icon-set_pay', 80, '', 'pay', '', '', '', 0, 1, 0, 1677148075, 1710473061),
(162, 161, 'C', '支付方式', '', 0, 'setting.pay.pay_way/getPayWay', 'method', 'setting/pay/method/index', '', '', 1, 1, 0, 1677148207, 1677148207),
(163, 161, 'C', '支付配置', '', 0, 'setting.pay.pay_config/lists', 'config', 'setting/pay/config/index', '', '', 1, 1, 0, 1677148260, 1677148374),
2024-09-02 16:39:17 +00:00
(164, 162, 'A', '设置支付方式', '', 0, 'setting.pay.pay_way/setPayWay', '', '', '', '', 0, 1, 0, 1677219624, 1677219624),
(165, 163, 'A', '配置', '', 0, 'setting.pay.pay_config/setConfig', '', '', '', '', 0, 1, 0, 1677219655, 1677219655),
(166, 0, 'M', '财务管理', 'local-icon-user_gaikuang', 700, '', 'finance', '', '', '', 0, 1, 0, 1677552269, 1710472085),
(167, 166, 'C', '充值记录', 'el-icon-Wallet', 90, 'recharge.recharge/lists', 'recharge_record', 'finance/recharge_record', '', '', 1, 1, 0, 1677552757, 1710472902),
(168, 166, 'C', '余额明细', 'local-icon-qianbao', 100, 'finance.account_log/lists', 'balance_details', 'finance/balance_details', '', '', 1, 1, 0, 1677552976, 1710472894),
2024-09-02 16:39:17 +00:00
(169, 167, 'A', '退款', '', 0, 'recharge.recharge/refund', '', '', '', '', 0, 1, 0, 1677809715, 1677809715),
(170, 166, 'C', '退款记录', 'local-icon-heshoujilu', 0, 'finance.refund/record', 'refund_record', 'finance/refund_record', '', '', 1, 1, 0, 1677811271, 1677811271),
2024-09-02 16:39:17 +00:00
(171, 170, 'A', '重新退款', '', 0, 'recharge.recharge/refundAgain', '', '', '', '', 0, 1, 0, 1677811295, 1677811295),
(172, 170, 'A', '退款日志', '', 0, 'finance.refund/log', '', '', '', '', 0, 1, 0, 1677811361, 1677811361),
(173, 175, 'C', '系统风格', 'el-icon-Brush', 80, '', 'style', 'decoration/style/style', '', '', 1, 1, 0, 1681635044, 1710929278),
(174, 96, 'C', '素材中心', 'local-icon-shangchuanzhaopian', 0, 'file/listCate', 'material', 'material/index', '', '', 1, 1, 0, 1710734367, 1710734392),
2024-09-02 16:39:17 +00:00
(175, 96, 'M', '移动端', '', 100, '', 'mobile', '', '', '', 0, 1, 0, 1710901543, 1710929294),
2024-11-16 07:36:43 +00:00
(176, 96, 'M', 'PC端', '', 90, '', 'pc', '', '', '', 0, 1, 0, 1710901592, 1710929299),
(177, 29, 'C', '站点统计', '', 0, 'setting.web.web_setting/getSiteStatistics', 'statistics', 'setting/website/statistics', '', '', 0, 1, 0, 1710901592, 1710929299),
(178, 177, 'A', '保存', '', 0, 'setting.web.web_setting/saveSiteStatistics', '', '', '', '', 1, 1, 0, 1710901592, 1710929299),
(179, 174, 'A', '素材列表', '', 0, 'file/lists', '/file/lists', 'consumer/lists/index', '', '', 0, 0, 0, 1710901592, 1710929299);
2024-09-02 16:39:17 +00:00
DROP TABLE IF EXISTS `la_system_role`;
CREATE TABLE `la_system_role` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(16) NOT NULL DEFAULT '' COMMENT '名称',
`desc` varchar(128) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '描述',
`sort` int(11) DEFAULT '0' COMMENT '排序',
`create_time` int(10) DEFAULT NULL COMMENT '创建时间',
`update_time` int(10) DEFAULT NULL COMMENT '更新时间',
`delete_time` int(10) DEFAULT NULL COMMENT '删除时间',
2022-08-17 09:34:58 +00:00
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='角色表';
2022-06-07 09:11:24 +00:00
2024-09-02 16:39:17 +00:00
DROP TABLE IF EXISTS `la_system_role_menu`;
CREATE TABLE `la_system_role_menu` (
`role_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '角色ID',
`menu_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '菜单ID',
PRIMARY KEY (`role_id`,`menu_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='角色菜单关系表';
2022-09-09 02:30:46 +00:00
DROP TABLE IF EXISTS `la_user`;
CREATE TABLE `la_user` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`sn` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '编号',
`avatar` varchar(200) NOT NULL DEFAULT '' COMMENT '头像',
`real_name` varchar(32) NOT NULL DEFAULT '' COMMENT '真实姓名',
`nickname` varchar(32) NOT NULL DEFAULT '' COMMENT '用户昵称',
2024-10-10 06:08:54 +00:00
`account` varchar(32) NOT NULL DEFAULT '' COMMENT '用户账号',
`password` varchar(32) NOT NULL DEFAULT '' COMMENT '用户密码',
`mobile` varchar(32) NOT NULL DEFAULT '' COMMENT '用户电话',
`sex` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '用户性别: [1=男, 2=女]',
2024-10-10 06:08:54 +00:00
`channel` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '注册渠道: [1-微信小程序 2-微信公众号 3-手机H5 4-电脑PC 5-苹果APP 6-安卓APP]',
`is_disable` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否禁用: [0=否, 1=是]',
2024-10-10 06:08:54 +00:00
`login_ip` varchar(200) NOT NULL DEFAULT '' COMMENT '最后登录IP',
`login_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后登录时间',
`is_new_user` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否是新注册用户: [1-是, 0-否]',
`user_money` decimal(10,2) unsigned DEFAULT '0.00' COMMENT '用户余额',
`total_recharge_amount` decimal(10,2) unsigned DEFAULT '0.00' COMMENT '累计充值',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
2024-10-10 06:08:54 +00:00
`delete_time` int(10) unsigned DEFAULT NULL COMMENT '删除时间',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `sn` (`sn`) USING BTREE COMMENT '编号唯一',
UNIQUE KEY `account` (`account`) USING BTREE COMMENT '账号唯一'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户表';
DROP TABLE IF EXISTS `la_user_account_log`;
CREATE TABLE `la_user_account_log` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`sn` varchar(32) NOT NULL DEFAULT '' COMMENT '流水号',
`user_id` int(11) NOT NULL COMMENT '用户id',
`change_object` tinyint(1) NOT NULL DEFAULT '0' COMMENT '变动对象',
`change_type` smallint(5) NOT NULL COMMENT '变动类型',
`action` tinyint(1) NOT NULL DEFAULT '0' COMMENT '动作 1-增加 2-减少',
`change_amount` decimal(10,2) NOT NULL COMMENT '变动数量',
`left_amount` decimal(10,2) NOT NULL DEFAULT '100.00' COMMENT '变动后数量',
`source_sn` varchar(255) DEFAULT NULL COMMENT '关联单号',
`remark` varchar(255) DEFAULT '' COMMENT '备注',
`extra` text COMMENT '预留扩展字段',
`create_time` int(10) DEFAULT NULL COMMENT '创建时间',
`update_time` int(10) DEFAULT NULL COMMENT '更新时间',
`delete_time` int(10) DEFAULT NULL COMMENT '删除时间',
2022-09-09 02:30:46 +00:00
PRIMARY KEY (`id`) USING BTREE
2024-10-10 06:08:54 +00:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
2022-09-09 02:30:46 +00:00
DROP TABLE IF EXISTS `la_user_auth`;
CREATE TABLE `la_user_auth` (
2024-10-10 06:08:54 +00:00
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL COMMENT '用户id',
`openid` varchar(128) NOT NULL COMMENT '微信openid',
`unionid` varchar(128) DEFAULT '' COMMENT '微信unionid',
`terminal` tinyint(1) NOT NULL DEFAULT '1' COMMENT '客户端类型1-微信小程序2-微信公众号3-手机H54-电脑PC5-苹果APP6-安卓APP',
`create_time` int(10) DEFAULT NULL COMMENT '创建时间',
`update_time` int(10) DEFAULT NULL COMMENT '更新时间',
2022-09-09 02:30:46 +00:00
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `openid` (`openid`) USING BTREE
2024-10-10 06:08:54 +00:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户授权表';
DROP TABLE IF EXISTS `la_user_session`;
CREATE TABLE `la_user_session` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL COMMENT '用户id',
`terminal` tinyint(1) NOT NULL DEFAULT '1' COMMENT '客户端类型1-微信小程序2-微信公众号3-手机H54-电脑PC5-苹果APP6-安卓APP',
`token` varchar(191) NOT NULL COMMENT '令牌',
2024-10-10 06:08:54 +00:00
`update_time` int(10) DEFAULT NULL COMMENT '更新时间',
`expire_time` int(10) NOT NULL COMMENT '到期时间',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `admin_id_client` (`user_id`,`terminal`) USING BTREE COMMENT '一个用户在一个终端只有一个token',
UNIQUE KEY `token` (`token`) USING BTREE COMMENT 'token是唯一的'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户会话表';
2024-10-10 06:08:54 +00:00
-- 2024-10-10 06:08:15
2024-10-11 06:22:42 +00:00
INSERT INTO `la_admin` (`id`, `root`, `name`, `avatar`, `account`, `password`, `login_time`, `login_ip`, `multipoint_login`, `disable`, `create_time`, `update_time`, `delete_time`) VALUES
(1, 1, 'admin', '', 'admin', '25bc144c738d61f98f3327ec7b7071af', 1728627656, '', 1, 0, 1728627656, 1728627656, NULL);
DROP TABLE IF EXISTS `la_system_log_operate`;
CREATE TABLE `la_system_log_operate` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`admin_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '操作人ID',
`type` varchar(30) NOT NULL DEFAULT '' COMMENT '请求类型: GET/POST/PUT',
`title` varchar(30) DEFAULT '' COMMENT '操作标题',
2024-11-18 02:05:22 +00:00
`ip` varchar(39) NOT NULL DEFAULT '' COMMENT '请求IP',
`url` varchar(200) NOT NULL DEFAULT '' COMMENT '请求接口',
`method` varchar(200) NOT NULL DEFAULT '' COMMENT '请求方法',
`args` text COMMENT '请求参数',
`error` text COMMENT '错误信息',
`status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '执行状态: 1=成功, 2=失败',
`start_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '开始时间',
`end_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '结束时间',
`task_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '执行耗时',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
PRIMARY KEY (`id`) USING BTREE
2024-10-30 16:20:37 +00:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='系统操作日志表';
INSERT INTO `la_config` (`id`, `type`, `name`, `value`, `create_time`, `update_time`) VALUES
(1, 'tabbar', 'style', '{\"default_color\":\"#999999\",\"selected_color\":\"#4173ff\"}', 1694052124, 1694052124),
(2, 'storage', 'default', 'local', 1696991320, 1723111254),
(3, 'storage', 'aliyun', '{\"bucket\":\"likeadmin\",\"access_key\":\"****\",\"secret_key\":\"*****\",\"domain\":\"https:\\/\\/s.com\"}', 1696991320, 1707117207),
(4, 'storage', 'local', '[]', 1696995442, 1696995442),
(5, 'oa_setting', 'menu', '[{\"name\":\"菜单名称\",\"has_menu\":\"\",\"type\":\"miniprogram\",\"url\":\"https:\\/\\/www.1222.com\",\"appid\":\"11\",\"pagepath\":\"222\",\"sub_button\":[]}]', 1698224548, 1698224548),
(6, 'oa_setting', 'name', '1', 1703144563, 1729927449),
(7, 'oa_setting', 'original_id', '1', 1703144563, 1729927449),
(8, 'oa_setting', 'qr_code', '', 1703144563, 1729927449),
(9, 'oa_setting', 'app_id', '***', 1703144563, 1729927449),
(10, 'oa_setting', 'app_secret', '***', 1703144563, 1729927449),
(11, 'oa_setting', 'token', '***', 1703144563, 1729927449),
(12, 'oa_setting', 'encoding_aes_key', '***', 1703144563, 1729927449),
(13, 'oa_setting', 'encryption_type', '1', 1703144563, 1729927449),
(14, 'login', 'login_way', '[\"1\",\"2\"]', 1707105336, 1707105336),
(15, 'login', 'coerce_mobile', '0', 1707105336, 1710837840),
(16, 'login', 'login_agreement', '1', 1707105336, 1707105336),
(17, 'login', 'third_auth', '1', 1707105336, 1707105336),
(18, 'login', 'wechat_auth', '1', 1707105336, 1707105336),
(19, 'login', 'qq_auth', '0', 1707105336, 1707105336),
(20, 'mnp_setting', 'name', '', 1707106679, 1729865093),
(21, 'mnp_setting', 'original_id', '', 1707106679, 1729865093),
(22, 'mnp_setting', 'qr_code', '', 1707106679, 1729865093),
(23, 'mnp_setting', 'app_id', '***', 1707106679, 1729865093),
(24, 'mnp_setting', 'app_secret', '***', 1707106679, 1729865093),
(25, 'recharge', 'status', '1', 1707106705, 1707106705),
(26, 'recharge', 'min_amount', '0', 1707106705, 1707106705),
(27, 'storage', 'qiniu', '{\"bucket\":\"likeshopv2\",\"access_key\":\"***\",\"secret_key\":\"***\",\"domain\":\"https:\\/\\/qiniu.yixiangonline.com\"}', 1707116129, 1707116129),
(28, 'website', 'name', 'likeadmin开源', 1707275641, 1710468285),
(29, 'website', 'web_favicon', 'uploads/images/20240815/2024081510040298b4f5907.jpg', 1707275641, 1723774747),
(30, 'website', 'web_logo', 'uploads/images/20240320/20240320182713a249f3453.jpeg', 1707275641, 1710930501),
(31, 'website', 'login_image', '/api/static/login_image.png', 1707275641, 1707275641),
(32, 'website', 'shop_name', 'likeadmin', 1707275641, 1707275641),
(33, 'website', 'shop_logo', '/api/static/shop_logo.png', 1707275641, 1707275641),
(34, 'website', 'pc_logo', '/api/static/pc_logo.png', 1707275641, 1707275641),
(35, 'website', 'pc_title', '世界一流的电商系统', 1707275641, 1707275641),
(36, 'website', 'pc_ico', 'uploads/images/20240815/20240815172141bdc2f5131.jpg', 1707275641, 1723774632),
(37, 'website', 'pc_desc', 'likeadmin', 1707275641, 1710930247),
(38, 'website', 'pc_keywords', 'likeadmin', 1707275641, 1710930247),
(39, 'website', 'h5_favicon', 'uploads/images/20240321/202403211100168802e9054.jpeg', 1707275641, 1723774667),
(40, 'agreement', 'service_title', '服务协议', 1707292881, 1707292881),
(41, 'agreement', 'service_content', '<p><br></p><p style=\"text-align: start; line-height: 1.5;\">服务协议:</p><p style=\"text-align: start; line-height: 1.5;\">一、微信小程序或APP或网站服务条款的确认和接纳本微信小程序或APP或网站以下统称本站的各项电子服务的所有权和运作权归本平台。本站提供的服务将完全按照其发布的服务条款和操作规则严格执行。用户同意所有服务条款并完成注册程序才能成为本站的正式用户。用户确认本协议条款是处理双方权利义务的约定除非违反国家强制性法律否则始终有效。在下订单的同时您也同时承认了您拥有购买这些产品的权利能力和行为能力并且将您对您在订单中提供的所有信息的真实性负责。</p><p style=\"text-align: start; line-height: 1.5;\">二、服务简介本站运用自己的操作系统通过国际互联网络为用户提供网络服务。同时,用户必须:(1)自行配备上网的所需设备,包括个人电脑、调制解调器或其它必备上网装置。(2)自行负担个人上网所支付的与此服务有关的电话费用、网络费用。基于本站所提供的网络服务的重要性,用户应同意(1)提供详尽、准确的个人资料。(2)不断更新注册资料,符合及时、详尽、准确的要求。本站保证不公开用户的真实姓名、地址、电子邮箱和联系电话等用户信息, 除以下情况外:(1)用户授权本站透露这些信息。(2)相应的法律及程序要求本站提供用户的个人资料。</p><p style=\"text-align: start; line-height: 1.5;\">三、价格和数量本站将尽最大努力保证您所购商品与网站上公布的价格一致。产品的价格和可获性都在本站上指明,这类信息将随时更改。您所订购的商品,如果发生缺货,您有权取消定单。</p><p style=\"text-align: start; line-height: 1.5;\">四、送货本站将会把产品送到您所指定的送货地址。所有在本站上列出的送货时间为参考时间,参考时间的计算是根据库存状况、正常的处理过程和送货时间、送货地点的基础上估计得出的。 请清楚准确地填写您的真实姓名、送货地址及联系方式。因如下情况造成订单延迟或无法配送等,本站将无法承担迟延配送的责任:(1)客户提供错误信息和不详细的地址;(2)货物送达无人签收,由此造成的重复配送所产生的费用及相关的后果。(3)不可抗力,例如:自然灾害、交通戒严、突发战争等。</p><p style=\"text-align: start; line-height: 1.5;\">五、服务条款的修改本站将可能不定期的修改本用户协议的有关条款,一旦条款及服务内容产生变动,本站将会在重要页面上提示修改内容。</p><p style=\"text-align: start; line-height: 1.5;\">六、用户隐私制度尊重用户个人隐私是本站的一项基本政策。所以,作为对以上第二条注册资料分析的补充,本站一定不会在未经合法用户授权时公开、编辑或透露其注册资料及保存在本站中的非公开内容。</p><p style=\"text-align: start; line-height: 1.5;\">七、用户的帐号,密码和安全性用户一旦注册成功,成为本站的合法用户,将得到一个密码和用户名。您可随时根据指示改变您的密码。用户需谨慎合理的保存、使用用户名和密码。用户若发现任何非法使用用户帐号或存在安全漏洞的情况,请立即通知本站和向公安机关报案。</p><p style=\"text-align: start; line-height: 1.5;\">八、对用户信息的存储和限制如果用户违背了国家法律法规规定或本协议约定,本站有视具体情形中止或终止对其提供网络服务的权利。</p><p style=\"text-align: start; line-height: 1.5;\">九、用户管理本协议依据国家相关法律法规规章制定,用户同意严格遵守以下条款:(1)从中国境内向外传输技术性资料时必须符合中国有关法<E585B3>
(42, 'agreement', 'privacy_title', '隐私政策', 1707292881, 1707292881),
(43, 'agreement', 'privacy_content', '<p><br></p><p style=\"text-align: start; line-height: 1.5;\">隐私协议:</p><p style=\"text-align: start; line-height: 1.5;\">一、微信小程序或APP或网站服务条款的确认和接纳本微信小程序或APP或网站以下统称本站的各项电子服务的所有权和运作权归本平台。本站提供的服务将完全按照其发布的服务条款和操作规则严格执行。用户同意所有服务条款并完成注册程序才能成为本站的正式用户。用户确认本协议条款是处理双方权利义务的约定除非违反国家强制性法律否则始终有效。在下订单的同时您也同时承认了您拥有购买这些产品的权利能力和行为能力并且将您对您在订单中提供的所有信息的真实性负责。</p><p style=\"text-align: start; line-height: 1.5;\">二、服务简介本站运用自己的操作系统通过国际互联网络为用户提供网络服务。同时,用户必须:(1)自行配备上网的所需设备,包括个人电脑、调制解调器或其它必备上网装置。(2)自行负担个人上网所支付的与此服务有关的电话费用、网络费用。基于本站所提供的网络服务的重要性,用户应同意(1)提供详尽、准确的个人资料。(2)不断更新注册资料,符合及时、详尽、准确的要求。本站保证不公开用户的真实姓名、地址、电子邮箱和联系电话等用户信息, 除以下情况外:(1)用户授权本站透露这些信息。(2)相应的法律及程序要求本站提供用户的个人资料。</p><p style=\"text-align: start; line-height: 1.5;\">三、价格和数量本站将尽最大努力保证您所购商品与网站上公布的价格一致。产品的价格和可获性都在本站上指明,这类信息将随时更改。您所订购的商品,如果发生缺货,您有权取消定单。</p><p style=\"text-align: start; line-height: 1.5;\">四、送货本站将会把产品送到您所指定的送货地址。所有在本站上列出的送货时间为参考时间,参考时间的计算是根据库存状况、正常的处理过程和送货时间、送货地点的基础上估计得出的。 请清楚准确地填写您的真实姓名、送货地址及联系方式。因如下情况造成订单延迟或无法配送等,本站将无法承担迟延配送的责任:(1)客户提供错误信息和不详细的地址;(2)货物送达无人签收,由此造成的重复配送所产生的费用及相关的后果。(3)不可抗力,例如:自然灾害、交通戒严、突发战争等。</p><p style=\"text-align: start; line-height: 1.5;\">五、服务条款的修改本站将可能不定期的修改本用户协议的有关条款,一旦条款及服务内容产生变动,本站将会在重要页面上提示修改内容。</p><p style=\"text-align: start; line-height: 1.5;\">六、用户隐私制度尊重用户个人隐私是本站的一项基本政策。所以,作为对以上第二条注册资料分析的补充,本站一定不会在未经合法用户授权时公开、编辑或透露其注册资料及保存在本站中的非公开内容。</p><p style=\"text-align: start; line-height: 1.5;\">七、用户的帐号,密码和安全性用户一旦注册成功,成为本站的合法用户,将得到一个密码和用户名。您可随时根据指示改变您的密码。用户需谨慎合理的保存、使用用户名和密码。用户若发现任何非法使用用户帐号或存在安全漏洞的情况,请立即通知本站和向公安机关报案。</p><p style=\"text-align: start; line-height: 1.5;\">八、对用户信息的存储和限制如果用户违背了国家法律法规规定或本协议约定,本站有视具体情形中止或终止对其提供网络服务的权利。</p><p style=\"text-align: start; line-height: 1.5;\">九、用户管理本协议依据国家相关法律法规规章制定,用户同意严格遵守以下条款:(1)从中国境内向外传输技术性资料时必须符合中国有关法<E585B3>
(44, 'default_image', 'user_avatar', 'uploads/images/20240207/20240207143014ef3ef7034.png', 1710141128, 1710141228),
(45, 'copyright', 'config', '[{\"key\":\"likeadmin开源后台\",\"value\":\"https:\\/\\/beian.miit.gov.cn\\/\"},{\"key\":\"likeshop开源电商\",\"value\":\"https:\\/\\/www.likeshop.cn\"}]', 1710471074, 1723715054),
(46, 'sms', 'tencent', '{\"name\":\"腾讯云短信\",\"type\":\"tencent\",\"sign\":\"***\",\"app_key\":\"\",\"app_id\":\"***\",\"secret_key\":\"***\",\"secret_id\":\"***\",\"status\":1}', 1710489820, 1729270985),
(47, 'sms', 'engine', 'ali', 1710489825, 1729343871),
(48, 'sms', 'ali', '{\"name\":\"阿里云短信\",\"type\":\"ali\",\"sign\":\"***\",\"app_key\":\"**\",\"app_id\":\"\",\"secret_key\":\"***\",\"secret_id\":\"\",\"status\":1}', 1710489837, 1729343871),
(49, 'hot_search', 'status', '1', 1710817727, 1723169824),
(50, 'storage', 'qcloud', '{\"bucket\":\"likeshop-1305907552\",\"region\":\"ap-guangzhou\",\"access_key\":\"****\",\"secret_key\":\"*****\",\"domain\":\"https:\\/\\/likeshop-1305907552.cos.ap-guangzhou.myqcloud.com\"}', 1723111250, 1723111250),
(51, 'open_platform', 'app_id', '221', 1729527783, 1729527783),
(52, 'open_platform', 'app_secret', '11A', 1729527783, 1729527783);