This repository was archived by the owner on Feb 15, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimple-blog.sql
More file actions
140 lines (125 loc) · 5.38 KB
/
simple-blog.sql
File metadata and controls
140 lines (125 loc) · 5.38 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
CREATE TABLE IF NOT EXISTS `simple_blog_article` (
`simple_blog_article_id` int(16) NOT NULL AUTO_INCREMENT,
`simple_blog_author_id` int(16) NOT NULL,
`allow_comment` tinyint(1) NOT NULL,
`image` text NOT NULL,
`featured_image` text NOT NULL,
`article_related_method` varchar(64) NOT NULL,
`article_related_option` text NOT NULL,
`sort_order` int(8) NOT NULL,
`status` tinyint(1) NOT NULL,
`date_added` datetime NOT NULL,
`date_modified` datetime NOT NULL,
PRIMARY KEY (`simple_blog_article_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `simple_blog_article_description` (
`simple_blog_article_description_id` int(16) NOT NULL AUTO_INCREMENT,
`simple_blog_article_id` int(16) NOT NULL,
`language_id` int(16) NOT NULL,
`article_title` varchar(256) NOT NULL,
`description` text NOT NULL,
`meta_description` varchar(256) NOT NULL,
`meta_keyword` varchar(256) NOT NULL,
PRIMARY KEY (`simple_blog_article_description_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `simple_blog_article_description_additional` (
`simple_blog_article_id` int(16) NOT NULL,
`language_id` int(16) NOT NULL,
`additional_description` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `simple_blog_article_product_related` (
`simple_blog_article_id` int(16) NOT NULL,
`product_id` int(16) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `simple_blog_article_to_category` (
`simple_blog_article_id` int(16) NOT NULL,
`simple_blog_category_id` int(16) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `simple_blog_article_to_layout` (
`simple_blog_article_id` int(16) NOT NULL,
`store_id` int(16) NOT NULL,
`layout_id` int(16) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `simple_blog_article_to_store` (
`simple_blog_article_id` int(16) NOT NULL,
`store_id` int(16) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `simple_blog_author` (
`simple_blog_author_id` int(16) NOT NULL AUTO_INCREMENT,
`name` varchar(256) NOT NULL,
`image` text NOT NULL,
`status` tinyint(1) NOT NULL,
`date_added` datetime NOT NULL,
`date_modified` datetime NOT NULL,
PRIMARY KEY (`simple_blog_author_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `simple_blog_author_description` (
`simple_blog_author_description_id` int(16) NOT NULL AUTO_INCREMENT,
`simple_blog_author_id` int(16) NOT NULL,
`language_id` int(16) NOT NULL,
`description` text NOT NULL,
`meta_description` varchar(256) NOT NULL,
`meta_keyword` varchar(256) NOT NULL,
`date_added` datetime NOT NULL,
PRIMARY KEY (`simple_blog_author_description_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `simple_blog_category` (
`simple_blog_category_id` int(16) NOT NULL AUTO_INCREMENT,
`image` text NOT NULL,
`parent_id` int(16) NOT NULL,
`top` tinyint(1) NOT NULL,
`blog_category_column` int(16) NOT NULL,
`column` int(8) NOT NULL,
`sort_order` int(8) NOT NULL,
`status` tinyint(1) NOT NULL,
`date_added` datetime NOT NULL,
`date_modified` datetime NOT NULL,
PRIMARY KEY (`simple_blog_category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `simple_blog_category_description` (
`simple_blog_category_description_id` int(16) NOT NULL AUTO_INCREMENT,
`simple_blog_category_id` int(16) NOT NULL,
`language_id` int(16) NOT NULL,
`name` varchar(256) NOT NULL,
`description` text NOT NULL,
`meta_description` varchar(256) NOT NULL,
`meta_keyword` varchar(256) NOT NULL,
PRIMARY KEY (`simple_blog_category_description_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `simple_blog_category_to_layout` (
`simple_blog_category_id` int(16) NOT NULL,
`store_id` int(16) NOT NULL,
`layout_id` int(16) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `simple_blog_category_to_store` (
`simple_blog_category_id` int(16) NOT NULL,
`store_id` int(16) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `simple_blog_comment` (
`simple_blog_comment_id` int(16) NOT NULL AUTO_INCREMENT,
`simple_blog_article_id` int(16) NOT NULL,
`simple_blog_article_reply_id` int(16) NOT NULL,
`author` varchar(64) NOT NULL,
`comment` text NOT NULL,
`status` tinyint(1) NOT NULL,
`date_added` datetime NOT NULL,
`date_modified` datetime NOT NULL,
PRIMARY KEY (`simple_blog_comment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `simple_blog_related_article` (
`simple_blog_related_article_id` int(16) NOT NULL AUTO_INCREMENT,
`simple_blog_article_id` int(16) NOT NULL,
`simple_blog_article_related_id` int(16) NOT NULL,
`sort_order` int(8) NOT NULL,
`status` tinyint(1) NOT NULL,
`date_added` datetime NOT NULL,
PRIMARY KEY (`simple_blog_related_article_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `simple_blog_view` (
`simple_blog_view_id` int(16) NOT NULL AUTO_INCREMENT,
`simple_blog_article_id` int(16) NOT NULL,
`view` int(16) NOT NULL,
`date_added` datetime NOT NULL,
`date_modified` datetime NOT NULL,
PRIMARY KEY (`simple_blog_view_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;