-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
570 additions
and
119 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("../src/db/author_content"); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("../src/db/profile_content"); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("../src/db/story_content"); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("../src/db/story_description_content"); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("../src/db/story_footnote_content"); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("../src/db/storytopic_content"); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("../src/db/storytopic_description_content"); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("../src/db/storytopic_stat_content"); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("../src/db/storytopic_subtitle_content"); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("../src/db/topic_content"); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("../src/db/topic_description_content"); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("../src/db/topic_stat_content"); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("../src/db/topic_subtitle_content"); |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
module.exports = function(sequelize, db) { | ||
|
||
const a = sequelize.define("author_content", | ||
{ | ||
id: { | ||
type: db.INTEGER, | ||
primaryKey: true | ||
}, | ||
lang: { | ||
type: db.STRING, | ||
primaryKey: true | ||
}, | ||
name: { | ||
type: db.STRING, | ||
defaultValue: "New Author" | ||
}, | ||
title: { | ||
type: db.STRING, | ||
defaultValue: "New Title" | ||
}, | ||
image: { | ||
type: db.STRING, | ||
defaultValue: "New Image" | ||
}, | ||
twitter: { | ||
type: db.STRING, | ||
defaultValue: "New Twitter" | ||
}, | ||
parent_id: { | ||
type: db.INTEGER, | ||
onDelete: "cascade", | ||
references: { | ||
model: "author", | ||
key: "id" | ||
} | ||
}, | ||
bio: { | ||
type: db.TEXT, | ||
defaultValue: "New Bio" | ||
} | ||
}, | ||
{ | ||
freezeTableName: true, | ||
timestamps: false | ||
} | ||
); | ||
|
||
return a; | ||
|
||
}; |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
module.exports = function(sequelize, db) { | ||
|
||
const p = sequelize.define("profile_content", | ||
{ | ||
id: { | ||
type: db.INTEGER, | ||
primaryKey: true | ||
}, | ||
lang: { | ||
type: db.STRING, | ||
primaryKey: true | ||
}, | ||
title: { | ||
type: db.STRING, | ||
defaultValue: "New Profile" | ||
}, | ||
subtitle: { | ||
type: db.TEXT, | ||
defaultValue: "New Subtitle" | ||
}, | ||
label: { | ||
type: db.STRING, | ||
defaultValue: "New Profile Label" | ||
}, | ||
parent_id: { | ||
type: db.INTEGER, | ||
onDelete: "cascade", | ||
references: { | ||
model: "profile", | ||
key: "id" | ||
} | ||
} | ||
}, | ||
{ | ||
freezeTableName: true, | ||
timestamps: false | ||
} | ||
); | ||
|
||
return p; | ||
|
||
}; |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
module.exports = function(sequelize, db) { | ||
|
||
const s = sequelize.define("story_content", | ||
{ | ||
id: { | ||
type: db.INTEGER, | ||
primaryKey: true | ||
}, | ||
lang: { | ||
type: db.STRING, | ||
primaryKey: true | ||
}, | ||
title: { | ||
type: db.STRING, | ||
defaultValue: "New Story" | ||
}, | ||
subtitle: { | ||
type: db.TEXT, | ||
defaultValue: "New Subtitle" | ||
}, | ||
image: { | ||
type: db.STRING, | ||
defaultValue: "New Image" | ||
}, | ||
ordering: db.INTEGER, | ||
slug: { | ||
type: db.STRING, | ||
defaultValue: "new-story-slug" | ||
}, | ||
date: { | ||
type: db.DATE, | ||
defaultValue: "2018-01-01 00:00:00" | ||
}, | ||
parent_id: { | ||
type: db.INTEGER, | ||
onDelete: "cascade", | ||
references: { | ||
model: "story", | ||
key: "id" | ||
} | ||
} | ||
}, | ||
{ | ||
freezeTableName: true, | ||
timestamps: false | ||
} | ||
); | ||
|
||
return s; | ||
|
||
}; |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
module.exports = function(sequelize, db) { | ||
|
||
const s = sequelize.define("story_description_content", | ||
{ | ||
id: { | ||
type: db.INTEGER, | ||
primaryKey: true | ||
}, | ||
lang: { | ||
type: db.STRING, | ||
primaryKey: true | ||
}, | ||
description: { | ||
type: db.TEXT, | ||
defaultValue: "New Description" | ||
}, | ||
parent_id: { | ||
type: db.INTEGER, | ||
onDelete: "cascade", | ||
references: { | ||
model: "story_description", | ||
key: "id" | ||
} | ||
} | ||
}, | ||
{ | ||
freezeTableName: true, | ||
timestamps: false | ||
} | ||
); | ||
|
||
return s; | ||
|
||
}; |
This file contains 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
Oops, something went wrong.