Created
February 25, 2013 22:30
-
-
Save thePunderWoman/5033941 to your computer and use it in GitHub Desktop.
Theme sql
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 Theme ( | |
ID int IDENTITY(1,1) PRIMARY KEY NOT NULL, | |
name varchar(255) NULL, | |
active bit NOT NULL, | |
dateAdded datetime NOT NULL | |
) | |
GO | |
CREATE TABLE ThemeFileType ( | |
ID int IDENTITY(1,1) PRIMARY KEY NOT NULL, | |
name varchar(100) NOT NULL, | |
extension varchar(10) NOT NULL | |
) | |
GO | |
CREATE TABLE ThemeFile ( | |
ID int IDENTITY(1,1) PRIMARY KEY NOT NULL, | |
themeID int NOT NULL FOREIGN KEY REFERENCES Theme(ID), | |
ThemeFileTypeID int NOT NULL FOREIGN KEY REFERENCES ThemeFileType(ID), | |
moduleID int NOT NULL FOREIGN KEY REFERENCES Modules(id), | |
filePath varchar(255) NOT NULL, | |
renderOrder int NOT NULL, | |
) | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment