-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathinstall.sql
More file actions
161 lines (150 loc) · 7.63 KB
/
Copy pathinstall.sql
File metadata and controls
161 lines (150 loc) · 7.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
CREATE DATABASE IF NOT EXISTS `FOS-Streaming` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `FOS-Streaming`;
DROP TABLE IF EXISTS `activity`;
CREATE TABLE IF NOT EXISTS `activity` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`stream_id` int(11) NOT NULL,
`user_agent` text COLLATE utf8_unicode_ci NOT NULL,
`user_ip` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`pid` int(11) NOT NULL,
`bandwidth` int(11) NOT NULL DEFAULT '0',
`date_start` datetime NOT NULL,
`date_end` datetime NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
KEY `activity_user_id_index` (`user_id`),
KEY `activity_stream_id_index` (`stream_id`),
KEY `activity_date_end_index` (`date_end`),
KEY `activity_pid_index` (`pid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `admins`;
CREATE TABLE IF NOT EXISTS `admins` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
UNIQUE KEY `admins_username_unique` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
INSERT INTO `admins` (`id`, `username`, `password`, `created_at`, `updated_at`) VALUES
(1, 'admin', '21232f297a57a5a743894a0e4a801fc3', '2016-01-29 19:38:33', '2016-01-29 18:38:33');
DROP TABLE IF EXISTS `blocked_ips`;
CREATE TABLE IF NOT EXISTS `blocked_ips` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ip` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`description` text COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
UNIQUE KEY `blocked_ips_ip_unique` (`ip`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `blocked_user_agents`;
CREATE TABLE IF NOT EXISTS `blocked_user_agents` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`description` text COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
UNIQUE KEY `blocked_user_agents_name_unique` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `categories`;
CREATE TABLE IF NOT EXISTS `categories` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `category_user`;
CREATE TABLE IF NOT EXISTS `category_user` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`category_id` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `settings`;
CREATE TABLE IF NOT EXISTS `settings` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ffmpeg_path` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '/usr/local/bin/ffmpeg',
`ffprobe_path` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '/usr/local/bin/ffprobe',
`webport` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '8000',
`webip` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`hlsfolder` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'hl',
`less_secure` tinyint(4) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`user_agent` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'FOS-Streaming',
`version` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '1.0.1',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `streams`;
CREATE TABLE IF NOT EXISTS `streams` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`streamurl` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`streamurl2` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`streamurl3` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`running` tinyint(4) NOT NULL,
`status` tinyint(4) NOT NULL,
`cat_id` int(11) NOT NULL,
`trans_id` int(11) NOT NULL,
`pid` int(11) NOT NULL,
`restream` tinyint(4) NOT NULL,
`video_codec_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`audio_codec_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`bitstreamfilter` tinyint(4) NOT NULL,
`checker` tinyint(4) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `transcodes`;
CREATE TABLE IF NOT EXISTS `transcodes` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`probesize` bigint(20) NOT NULL,
`analyzeduration` bigint(20) NOT NULL,
`video_codec` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`audio_codec` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`profile` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`preset_values` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`scale` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`aspect_ratio` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`video_bitrate` bigint(20) NOT NULL,
`audio_channel` int(11) NOT NULL,
`audio_bitrate` bigint(20) NOT NULL,
`fps` int(11) NOT NULL,
`minrate` int(11) NOT NULL,
`maxrate` int(11) NOT NULL,
`bufsize` int(11) NOT NULL,
`audio_sampling_rate` int(11) NOT NULL,
`crf` int(11) NOT NULL,
`threads` int(11) NOT NULL,
`deinterlance` tinyint(4) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
UNIQUE KEY `transcodes_name_unique` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`active` tinyint(4) NOT NULL,
`lastconnected_ip` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`exp_date` date NOT NULL,
`last_stream` int(11) NOT NULL,
`useragent` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`max_connections` int(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
UNIQUE KEY `users_username_unique` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;