-- -- 由SQLiteStudio v3.1.1 产生的文件 周日 12月 27 10:58:51 2020 -- -- 文本编码:UTF-8 -- PRAGMA foreign_keys = off; BEGIN TRANSACTION; -- 表:IpcInfo DROP TABLE IF EXISTS IpcInfo; CREATE TABLE IpcInfo (IpcID INTEGER PRIMARY KEY AUTOINCREMENT, IpcName VARCHAR (30) NOT NULL, NvrName VARCHAR (30), IpcType VARCHAR (30), OnvifAddr VARCHAR (150), MediaAddr VARCHAR (150), PtzAddr VARCHAR (150), RtspMain VARCHAR (250), RtspSub VARCHAR (250), IpcPosition VARCHAR (50), IpcImage VARCHAR (30), IpcX INTEGER (4), IpcY INTEGER (4), UserName VARCHAR (20), UserPwd VARCHAR (20), IpcEnable VARCHAR (2), IpcAddr VARCHAR (100)); INSERT INTO IpcInfo (IpcID, IpcName, NvrName, IpcType, OnvifAddr, MediaAddr, PtzAddr, RtspMain, RtspSub, IpcPosition, IpcImage, IpcX, IpcY, UserName, UserPwd, IpcEnable, IpcAddr) VALUES (1, '海康萤石', '录像机#1', 'other', '', '', '', 'https://hls01open.ys7.com/openlive/6e0b2be040a943489ef0b9bb344b96b8.hd.m3u8', 'https://hls01open.ys7.com/openlive/6e0b2be040a943489ef0b9bb344b96b8.hd.m3u8', '121.413425|31.184064', '无', 5, 5, 'admin', 'admin', '启用', '测试地址'); INSERT INTO IpcInfo (IpcID, IpcName, NvrName, IpcType, OnvifAddr, MediaAddr, PtzAddr, RtspMain, RtspSub, IpcPosition, IpcImage, IpcX, IpcY, UserName, UserPwd, IpcEnable, IpcAddr) VALUES (2, 'USB摄像头', '录像机#1', 'camera', '', '', '', 'video=USB2.0 PC CAMERA|1280x720', 'video=USB2.0 PC CAMERA|640x480', '121.412715|31.183875', '无', 5, 5, 'admin', 'admin', '启用', '测试地址'); INSERT INTO IpcInfo (IpcID, IpcName, NvrName, IpcType, OnvifAddr, MediaAddr, PtzAddr, RtspMain, RtspSub, IpcPosition, IpcImage, IpcX, IpcY, UserName, UserPwd, IpcEnable, IpcAddr) VALUES (3, '本地视频', '录像机#1', 'mp4', '', '', '', 'f:/mp4/1.mp4', 'f:/mp4/1.mp4', '121.412468|31.183354', '无', 5, 5, 'admin', 'admin', '启用', '测试地址'); INSERT INTO IpcInfo (IpcID, IpcName, NvrName, IpcType, OnvifAddr, MediaAddr, PtzAddr, RtspMain, RtspSub, IpcPosition, IpcImage, IpcX, IpcY, UserName, UserPwd, IpcEnable, IpcAddr) VALUES (4, '测试视频1', '录像机#2', 'IMCP', 'http://192.168.1.15:81/onvif/device_service', 'http://192.168.1.15:81/onvif/media', 'http://192.168.1.15:81/onvif/ptz', 'rtsp://admin:12345@192.168.1.15/media/video1', 'rtsp://admin:12345@192.168.1.15/media/video2', '121.414071|31.183759', '无', 80, 5, 'admin', '12345', '启用', '测试地址'); INSERT INTO IpcInfo (IpcID, IpcName, NvrName, IpcType, OnvifAddr, MediaAddr, PtzAddr, RtspMain, RtspSub, IpcPosition, IpcImage, IpcX, IpcY, UserName, UserPwd, IpcEnable, IpcAddr) VALUES (5, '测试视频2', '录像机#2', 'FOKO', 'http://192.168.1.18:80/onvif/device_service', 'http://192.168.1.18:80/onvif/media_service', 'http://192.168.1.18:80/onvif/ptz_service', 'rtsp://admin:admin@192.168.1.18:554/1/h264major', 'rtsp://admin:admin@192.168.1.18:554/1/h264minor', '121.415257|31.183643', '无', 155, 5, 'admin', 'admin', '启用', '测试地址'); INSERT INTO IpcInfo (IpcID, IpcName, NvrName, IpcType, OnvifAddr, MediaAddr, PtzAddr, RtspMain, RtspSub, IpcPosition, IpcImage, IpcX, IpcY, UserName, UserPwd, IpcEnable, IpcAddr) VALUES (6, '测试视频3', '录像机#2', 'HIKVISION', 'http://192.168.1.64/onvif/device_service', 'http://192.168.1.64/onvif/Media', 'http://192.168.1.64/onvif/PTZ', 'rtsp://admin:Admin123456@192.168.1.64:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1', 'rtsp://admin:Admin123456@192.168.1.64:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2', '121.415401|31.182940', '无', 230, 5, 'admin', 'Admin123456', '启用', '测试地址'); INSERT INTO IpcInfo (IpcID, IpcName, NvrName, IpcType, OnvifAddr, MediaAddr, PtzAddr, RtspMain, RtspSub, IpcPosition, IpcImage, IpcX, IpcY, UserName, UserPwd, IpcEnable, IpcAddr) VALUES (7, '测试视频4', '录像机#2', 'hd', 'http://192.168.1.247:2000/onvif/device_service', 'http://192.168.1.247:2000/onvif/device_service', 'http://192.168.1.247:2000/onvif/device_service', 'rtsp://admin:admin@192.168.1.247:554/av0_0', 'rtsp://admin:admin@192.168.1.247:554/av0_1', '121.415298|31.182512', '无', 305, 5, 'admin', 'admin', '启用', '测试地址'); INSERT INTO IpcInfo (IpcID, IpcName, NvrName, IpcType, OnvifAddr, MediaAddr, PtzAddr, RtspMain, RtspSub, IpcPosition, IpcImage, IpcX, IpcY, UserName, UserPwd, IpcEnable, IpcAddr) VALUES (8, '测试视频5', '录像机#2', 'hd', 'http://192.168.1.247:2000/onvif/device_service', 'http://192.168.1.247:2000/onvif/device_service', 'http://192.168.1.247:2000/onvif/device_service', 'rtsp://admin:admin@192.168.1.247:554/av0_0', 'rtsp://admin:admin@192.168.1.247:554/av0_1', '121.414525|31.182098', '无', 380, 5, 'admin', 'admin', '启用', '测试地址'); -- 表:LogInfo DROP TABLE IF EXISTS LogInfo; CREATE TABLE LogInfo (LogID INTEGER PRIMARY KEY, TriggerTime VARCHAR (19) NOT NULL, UserName VARCHAR (20) NOT NULL, LogCh VARCHAR (50), LogType VARCHAR (10) NOT NULL, LogContent VARCHAR (100) NOT NULL, LogMark VARCHAR (200)); INSERT INTO LogInfo (LogID, TriggerTime, UserName, LogCh, LogType, LogContent, LogMark) VALUES (1, '2020-12-27 10:15:27', 'admin', '', '用户操作', '用户登录', ''); INSERT INTO LogInfo (LogID, TriggerTime, UserName, LogCh, LogType, LogContent, LogMark) VALUES (2, '2020-12-27 10:52:15', 'admin', '', '用户操作', '用户登录', ''); -- 表:NvrInfo DROP TABLE IF EXISTS NvrInfo; CREATE TABLE NvrInfo (NvrID INTEGER PRIMARY KEY AUTOINCREMENT, NvrName VARCHAR (30) NOT NULL, NvrType VARCHAR (20), NvrIP VARCHAR (18) NOT NULL, UserName VARCHAR (20), UserPwd VARCHAR (20), NvrEnable VARCHAR (2) NOT NULL, NvrAddr VARCHAR (100)); INSERT INTO NvrInfo (NvrID, NvrName, NvrType, NvrIP, UserName, UserPwd, NvrEnable, NvrAddr) VALUES (1, '录像机#1', '海康', '192.168.1.255', 'admin', 'admin', '启用', '虹漕路421号'); INSERT INTO NvrInfo (NvrID, NvrName, NvrType, NvrIP, UserName, UserPwd, NvrEnable, NvrAddr) VALUES (2, '录像机#2', '大华', '192.168.1.255', 'admin', 'admin', '启用', '虹漕路421号'); -- 表:PollInfo DROP TABLE IF EXISTS PollInfo; CREATE TABLE PollInfo (PollID INTEGER PRIMARY KEY, PollGroup VARCHAR (20) NOT NULL, RtspMain VARCHAR (250) NOT NULL, RtspSub VARCHAR (250) NOT NULL); -- 表:UserInfo DROP TABLE IF EXISTS UserInfo; CREATE TABLE UserInfo (UserName VARCHAR (20), UserPwd VARCHAR (20), UserType VARCHAR (10), UserAdmin VARCHAR (30), PRIMARY KEY (UserName)); INSERT INTO UserInfo (UserName, UserPwd, UserType, UserAdmin) VALUES ('admin', 'admin', '管理员', ''); INSERT INTO UserInfo (UserName, UserPwd, UserType, UserAdmin) VALUES ('feiyang', '123456', '操作员', ''); COMMIT TRANSACTION; PRAGMA foreign_keys = on;