1 Star 0 Fork 5

大海/企业微信对接微门禁 扫码开门源码

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
wmj_qywx_user_key_log.sql 3.69 KB
一键复制 编辑 原始数据 按行查看 历史
-- --------------------------------------------------------
--
-- 表的结构 `admin`
--
CREATE TABLE IF NOT EXISTS `admin` (
`id` int(11) NOT NULL,
`username` varchar(20) NOT NULL,
`password` char(32) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
--
-- 转存表中的数据 `admin`
--
INSERT INTO `admin` (`id`, `username`, `password`) VALUES
(1, 'admin', '21232f297a57a5a743894a0e4a801fc3');
-- --------------------------------------------------------
--
-- 表的结构 `config`
--
CREATE TABLE IF NOT EXISTS `config` (
`id` int(11) NOT NULL,
`k` varchar(20) NOT NULL,
`v` text NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
--
-- 转存表中的数据 `config`
--
INSERT INTO `config` (`id`, `k`, `v`) VALUES
(1, 'wmj', '{"appid":"wmj_G16TaCGMmvY","appsecret":"Xs4xH59GehhR8k7xZ4WRBfnQbluACtKa","aeskey":""}'),
(2, 'weixin', '{"appid":"wx55cec8d2eb382364","appsecret":"3RW9Wm4h_Hoxp4USem55HNGIjojWXvjfOdvAgDpP5MI","agentid":"1000014","tpl_msg":"7eXnnybqDB4dAbmqyStk6Rfb7GGyO-bps5aV7T0_Xvs"}');
-- --------------------------------------------------------
--
-- 表的结构 `locks`
--
CREATE TABLE IF NOT EXISTS `locks` (
`id` int(11) NOT NULL,
`name` varchar(50) NOT NULL,
`sn` varchar(20) NOT NULL,
`sim` varchar(50) NOT NULL,
`type` int(2) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8;
--
-- 表的结构 `log`
--
CREATE TABLE IF NOT EXISTS `log` (
`id` int(11) NOT NULL,
`lock_id` int(11) NOT NULL,
`uid` int(11) NOT NULL,
`msg` varchar(255) NOT NULL,
`addtime` int(10) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2684 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `user`
--
CREATE TABLE IF NOT EXISTS `user` (
`id` int(11) NOT NULL,
`nickname` varchar(50) NOT NULL,
`avatar` varchar(255) NOT NULL,
`openid` varchar(255) NOT NULL,
`dateline` int(10) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=329 DEFAULT CHARSET=utf8;
--
-- 表的结构 `user_key`
--
CREATE TABLE IF NOT EXISTS `user_key` (
`id` int(11) NOT NULL,
`uid` int(11) NOT NULL,
`lock_id` int(11) NOT NULL,
`add_time` int(10) NOT NULL,
`isauth` int(1) NOT NULL DEFAULT '1'
) ENGINE=InnoDB AUTO_INCREMENT=636 DEFAULT CHARSET=utf8;
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `config`
--
ALTER TABLE `config`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `locks`
--
ALTER TABLE `locks`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `log`
--
ALTER TABLE `log`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_key`
--
ALTER TABLE `user_key`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `config`
--
ALTER TABLE `config`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `locks`
--
ALTER TABLE `locks`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=32;
--
-- AUTO_INCREMENT for table `log`
--
ALTER TABLE `log`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2684;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=329;
--
-- AUTO_INCREMENT for table `user_key`
--
ALTER TABLE `user_key`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=636;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/jzwfcaidy/wmj_qywx_user_key_log.git
git@gitee.com:jzwfcaidy/wmj_qywx_user_key_log.git
jzwfcaidy
wmj_qywx_user_key_log
企业微信对接微门禁 扫码开门源码
master

搜索帮助