-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdatabase.sql.txt
75 lines (58 loc) · 2.13 KB
/
database.sql.txt
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
-- MySQL Administrator dump 1.4
--
-- ------------------------------------------------------
-- Server version 5.1.37-1ubuntu5.5
/*!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 utf8 */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
--
-- Create schema NoticiasTVi
--
CREATE DATABASE IF NOT EXISTS NoticiasTVi;
USE NoticiasTVi;
--
-- Definition of table `NoticiasTVi`.`contents`
--
DROP TABLE IF EXISTS `NoticiasTVi`.`contents`;
CREATE TABLE `NoticiasTVi`.`contents` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`title` tinytext NOT NULL,
`video` text NOT NULL,
`capture` text NOT NULL,
`time` tinytext NOT NULL,
`content` longtext NOT NULL,
`author` tinytext NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
--
-- Definition of table `NoticiasTVi`.`preferenceTable`
--
DROP TABLE IF EXISTS `NoticiasTVi`.`preferenceTable`;
CREATE TABLE `NoticiasTVi`.`preferenceTable` (
`user_id` bigint(20) NOT NULL,
`content_id` bigint(20) NOT NULL,
`preference` float NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Definition of table `NoticiasTVi`.`users`
--
DROP TABLE IF EXISTS `NoticiasTVi`.`users`;
CREATE TABLE `NoticiasTVi`.`users` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`identifier` tinytext NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `NoticiasTVi`.`users`
--
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!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 */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;