-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontentstormschema.sql
More file actions
112 lines (101 loc) · 3.88 KB
/
contentstormschema.sql
File metadata and controls
112 lines (101 loc) · 3.88 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
/*
Navicat MariaDB Data Transfer
Source Server : Mothership
Source Server Version : 100015
Source Host : mothershipmaria.leoparddata.com:3306
Source Database : contentstorm
Target Server Type : MariaDB
Target Server Version : 100015
File Encoding : 65001
Date: 2016-05-05 16:58:26
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for blogentries
-- ----------------------------
DROP TABLE IF EXISTS `blogentries`;
CREATE TABLE `blogentries` (
`BlogEntryID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`BlogID` bigint(20) DEFAULT NULL,
`ContentID` bigint(20) DEFAULT NULL,
`PublishDate` datetime DEFAULT NULL,
`AuthorSecurityUserID` bigint(20) DEFAULT NULL,
`IsVisible` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`BlogEntryID`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for blogs
-- ----------------------------
DROP TABLE IF EXISTS `blogs`;
CREATE TABLE `blogs` (
`BlogID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`WebApplicationID` bigint(20) DEFAULT NULL,
`Name` varchar(512) DEFAULT NULL,
`Description` varchar(1024) DEFAULT NULL,
`Created` datetime DEFAULT NULL,
`IsActive` tinyint(1) DEFAULT NULL,
`OwnerSecurityUserID` bigint(20) DEFAULT NULL,
PRIMARY KEY (`BlogID`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for content
-- ----------------------------
DROP TABLE IF EXISTS `content`;
CREATE TABLE `content` (
`ContentID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`ContentTypeID` bigint(20) NOT NULL,
`Title` varchar(255) DEFAULT NULL,
`Path` varchar(1024) DEFAULT NULL,
`Name` varchar(255) DEFAULT NULL,
`Description` varchar(2048) DEFAULT NULL,
`WebApplicationID` bigint(20) NOT NULL,
`ContentBlob` longblob,
`ContentText` longtext,
`RequireSession` tinyint(1) NOT NULL,
`Created` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`ContentID`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=16;
-- ----------------------------
-- Table structure for contentdependencies
-- ----------------------------
DROP TABLE IF EXISTS `contentdependencies`;
CREATE TABLE `contentdependencies` (
`ContentDependencyID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`ContentID` bigint(20) DEFAULT NULL,
`DependsOnContentID` bigint(20) DEFAULT NULL,
PRIMARY KEY (`ContentDependencyID`),
KEY `contentid` (`ContentID`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for contenttypes
-- ----------------------------
DROP TABLE IF EXISTS `contenttypes`;
CREATE TABLE `contenttypes` (
`ContentTypeID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`Name` varchar(255) DEFAULT NULL,
PRIMARY KEY (`ContentTypeID`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for securityusers
-- ----------------------------
DROP TABLE IF EXISTS `securityusers`;
CREATE TABLE `securityusers` (
`SecurityUserID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`ExternalSecurityUserID` bigint(20) DEFAULT NULL,
`Username` varchar(255) DEFAULT NULL,
`Password` varchar(512) DEFAULT NULL,
`WebApplicationID` bigint(20) DEFAULT NULL,
PRIMARY KEY (`SecurityUserID`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for webapplications
-- ----------------------------
DROP TABLE IF EXISTS `webapplications`;
CREATE TABLE `webapplications` (
`WebApplicationID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`Name` varchar(255) DEFAULT NULL,
`Description` varchar(2048) DEFAULT NULL,
`IsAvailable` tinyint(1) DEFAULT NULL,
`Created` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`WebApplicationID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;