Created
August 2, 2013 08:16
-
-
Save ezimuel/6138279 to your computer and use it in GitHub Desktop.
ZF2 blog simple schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE post ( | |
id int(11) NOT NULL auto_increment, | |
title varchar(100) NOT NULL, | |
content TEXT NOT NULL, | |
user_id int(11), | |
category_id int(11), | |
publish_date DATETIME, | |
PRIMARY KEY (id) | |
); | |
CREATE TABLE user ( | |
id int(11) NOT NULL auto_increment, | |
username varchar(100) NOT NULL, | |
password varchar(60) NOT NULL, | |
role_id int(11), | |
PRIMARY KEY (id) | |
); | |
CREATE TABLE role ( | |
id int(11) NOT NULL auto_increment, | |
role varchar(100) NOT NULL, | |
PRIMARY KEY (id) | |
); | |
CREATE TABLE category ( | |
id int(11) NOT NULL auto_increment, | |
category varchar(100) NOT NULL, | |
PRIMARY KEY (id) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment