Added the Sheepstar API to the Archive

This commit is contained in:
2022-09-06 16:37:56 +02:00
parent d6c272cdaf
commit bb78376745
36 changed files with 5346 additions and 0 deletions

View File

@ -0,0 +1,37 @@
const Sequelize = require('sequelize');
const db = require("../config/database");
module.exports = db.define("articles", {
moduleName: {
type: Sequelize.STRING,
allowNull: false
},
articleID: {
type: Sequelize.STRING,
allowNull: false
},
articleName: {
type: Sequelize.STRING,
allowNull: false
},
imageID: {
type: Sequelize.STRING,
allowNull: true
},
articleDescription: {
type: Sequelize.STRING,
defaultValue: "Sheepstar article"
},
articleExtras: {
type: Sequelize.JSON,
defaultValue: {}
},
articlePrice: {
type: Sequelize.INTEGER,
defaultValue: 0
},
maxOwnCount: {
type: Sequelize.INTEGER,
defaultValue: 1
}
});