-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathconfig.js
More file actions
34 lines (32 loc) · 828 Bytes
/
config.js
File metadata and controls
34 lines (32 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/***********************************************************
* Loading all required dependencies, libraries and packages
**********************************************************/
const Sequelize = require("sequelize");
const { sequelize } = require("../../../connection");
// setup User model and its fields.
var Config = sequelize.define(
"configs",
{
mission: {
type: Sequelize.STRING,
unique: false,
allowNull: false,
},
config: {
type: Sequelize.JSON,
allowNull: true,
defaultValue: {},
},
version: {
type: Sequelize.DataTypes.INTEGER,
unique: false,
allowNull: false,
},
},
{
timestamps: true,
updatedAt: false,
}
);
// export User model for use in other files.
module.exports = Config;