Skip to content

Instantly share code, notes, and snippets.

@thePunderWoman
Created February 25, 2013 22:30
Show Gist options
  • Save thePunderWoman/5033941 to your computer and use it in GitHub Desktop.
Save thePunderWoman/5033941 to your computer and use it in GitHub Desktop.
Theme sql
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