-- phpMyAdmin SQL Dump
-- version 4.8.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: 2021-03-24 07:42:43
-- 服务器版本: 5.5.68-MariaDB
-- PHP Version: 7.0.33
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `cayman`
--
CREATE DATABASE IF NOT EXISTS `cayman` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE `cayman`;
-- --------------------------------------------------------
--
-- 表的结构 `gm_advertis`
--
DROP TABLE IF EXISTS `gm_advertis`;
CREATE TABLE `gm_advertis` (
`id` int(11) NOT NULL,
`type` varchar(125) DEFAULT NULL,
`name` text,
`position` varchar(125) DEFAULT NULL,
`created` datetime DEFAULT NULL,
`updated` datetime DEFAULT NULL,
`link` varchar(125) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `gm_areas`
--
DROP TABLE IF EXISTS `gm_areas`;
CREATE TABLE `gm_areas` (
`area_id` int(11) NOT NULL,
`name` varchar(50) NOT NULL,
`created` datetime DEFAULT NULL,
`updated` datetime DEFAULT NULL,
`sort_id` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='地区表';
-- --------------------------------------------------------
--
-- 表的结构 `gm_attention`
--
DROP TABLE IF EXISTS `gm_attention`;
CREATE TABLE `gm_attention` (
`attention_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL DEFAULT '0',
`openid` varchar(200) DEFAULT NULL,
`track_id` int(11) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `gm_board`
--
DROP TABLE IF EXISTS `gm_board`;
CREATE TABLE `gm_board` (
`board_id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`type` int(1) NOT NULL DEFAULT '0',
`owner` varchar(64) NOT NULL,
`url` varchar(255) DEFAULT NULL,
`content` text,
`state` int(11) NOT NULL DEFAULT '0',
`created` int(11) NOT NULL,
`updated` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `gm_cam_info`
--
-- 创建时间: 2024-04-30 22:22:53
-- 最后更新: 2024-05-01 14:16:06
--
DROP TABLE IF EXISTS `gm_cam_info`;
CREATE TABLE `gm_cam_info` (
`cam_id` int(11) NOT NULL,
`cam_name` varchar(100) NOT NULL,
`cam_ip` varchar(100) NOT NULL,
`cam_priv_port` int(11) NOT NULL DEFAULT '8000',
`cam_rtsp_port` int(11) NOT NULL DEFAULT '554',
`cam_usr` varchar(50) NOT NULL,
`cam_psw` varchar(50) NOT NULL,
`cam_type` int(11) NOT NULL DEFAULT '0',
`cam_pull_channel` int(11) NOT NULL,
`cam_push_channel` int(11) NOT NULL,
`cam_group` int(11) NOT NULL DEFAULT '0',
`cam_enable_livetransfer` tinyint(2) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `gm_card`
--
DROP TABLE IF EXISTS `gm_card`;
CREATE TABLE `gm_card` (
`card_id` int(11) NOT NULL,
`track_id` int(11) NOT NULL,
`week_id` int(11) NOT NULL,
`describe` text,
`cardtime` varchar(125) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `gm_class`
--
DROP TABLE IF EXISTS `gm_class`;
CREATE TABLE `gm_class` (
`class_id` int(11) NOT NULL,
`class_name` varchar(255) NOT NULL,
`describe` varchar(255) DEFAULT NULL,
`created` datetime NOT NULL,
`updated` datetime NOT NULL,
`sort_id` int(11) DEFAULT '0',
`group_block` varchar(255) DEFAULT NULL,
`taglog` tinyint(2) NOT NULL DEFAULT '0' COMMENT '自定义分类3分屏'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='分类表';
--
-- 转存表中的数据 `gm_class`
--
INSERT INTO `gm_class` (`class_id`, `class_name`, `describe`, `created`, `updated`, `sort_id`, `group_block`, `taglog`) VALUES
(1, '点播', '', '2017-06-21 11:02:04', '2017-06-21 11:02:04', 1, NULL, 0);
-- --------------------------------------------------------
--
-- 表的结构 `gm_comment`
--
DROP TABLE IF EXISTS `gm_comment`;
CREATE TABLE `gm_comment` (
`comment_id` int(11) NOT NULL,
`movie_id` int(11) NOT NULL DEFAULT '0',
`file_id` int(11) DEFAULT '0',
`track_id` int(11) DEFAULT '0',
`order_id` int(11) NOT NULL DEFAULT '0',
`author` varchar(255) DEFAULT NULL,
`describe` text NOT NULL,
`created` datetime NOT NULL,
`updated` datetime NOT NULL,
`status` int(11) DEFAULT '0',
`recomid` int(11) DEFAULT '0',
`marking` int(2) DEFAULT '0',
`vodname` varchar(255) DEFAULT NULL,
`subject_id` int(11) DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `gm_dischat`
--
DROP TABLE IF EXISTS `gm_dischat`;
CREATE TABLE `gm_dischat` (
`dischat_id` int(11) UNSIGNED NOT NULL,
`user_id` int(11) NOT NULL DEFAULT '0' COMMENT '前台用户id',
`openid` varchar(60) NOT NULL DEFAULT '0' COMMENT 'openid号',
`track_id` int(11) UNSIGNED NOT NULL COMMENT '频道id',
`created` int(11) NOT NULL,
`nickname` varchar(50) DEFAULT NULL COMMENT ' 前台用户名'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `gm_fuzhai`
--
DROP TABLE IF EXISTS `gm_fuzhai`;
CREATE TABLE `gm_fuzhai` (
`id` int(11) NOT NULL,
`addr` varchar(255) DEFAULT NULL,
`port` int(11) DEFAULT '80',
`num` int(11) DEFAULT '0',
`created` datetime DEFAULT NULL,
`updated` datetime DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- 转存表中的数据 `gm_fuzhai`
--
-- --------------------------------------------------------
--
-- 表的结构 `gm_group`
--
DROP TABLE IF EXISTS `gm_group`;
CREATE TABLE `gm_group` (
`group_id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`vod` tinyint(1) NOT NULL DEFAULT '1',
`track` tinyint(1) NOT NULL DEFAULT '1',
`recfile` tinyint(1) NOT NULL DEFAULT '0',
`download` tinyint(1) NOT NULL DEFAULT '0',
`commend` tinyint(1) NOT NULL DEFAULT '1',
`describe` text,
`created` datetime NOT NULL,
`updated` datetime NOT NULL,
`vodfile` tinyint(1) DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- 转存表中的数据 `gm_group`
--
INSERT INTO `gm_group` (`group_id`, `name`, `vod`, `track`, `recfile`, `download`, `commend`, `describe`, `created`, `updated`, `vodfile`) VALUES
(6, 'default', 1, 1, 0, 0, 1, '', '2008-08-08 09:12:14', '2008-08-08 09:12:14', 0);
-- --------------------------------------------------------
--
-- 表的结构 `gm_ip`
--
DROP TABLE IF EXISTS `gm_ip`;
CREATE TABLE `gm_ip` (
`id` int(11) NOT NULL,
`ip_start` varchar(255) DEFAULT NULL,
`ip_end` varchar(255) DEFAULT NULL,
`created` int(11) DEFAULT NULL,
`updated` varchar(255) DEFAULT NULL,
`out_ip` varchar(255) DEFAULT NULL,
`state` int(3) DEFAULT NULL,
`ip_type` int(2) DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `gm_livefree`
--
DROP TABLE IF EXISTS `gm_livefree`;
CREATE TABLE `gm_livefree` (
`id` int(11) NOT NULL,
`live_id` int(11) NOT NULL DEFAULT '0' COMMENT 'gm_track表里的live_id',
`live_title` varchar(255) DEFAULT NULL COMMENT '平台的直播间的名称',
`expire` bigint(12) NOT NULL COMMENT '购买的过期时间',
`created` int(11) NOT NULL DEFAULT '0',
`status` int(2) NOT NULL DEFAULT '0' COMMENT '任务状态',
`livefree_user_id` int(11) NOT NULL DEFAULT '0' COMMENT '平台的主播id',
`front_id` int(11) NOT NULL DEFAULT '0' COMMENT '平台前端用户id'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `gm_log`
--
DROP TABLE IF EXISTS `gm_log`;