Added the Sheepstar API to the Archive
This commit is contained in:
21
SheepstarAPIV1/models/Inventory.js
Normal file
21
SheepstarAPIV1/models/Inventory.js
Normal file
@ -0,0 +1,21 @@
|
||||
const Sequelize = require('sequelize');
|
||||
const db = require("../config/database");
|
||||
|
||||
module.exports = db.define("inventorys", {
|
||||
clientID: {
|
||||
type: Sequelize.STRING,
|
||||
allowNull: false
|
||||
},
|
||||
articleID: {
|
||||
type: Sequelize.STRING,
|
||||
allowNull: false
|
||||
},
|
||||
articleExtras: {
|
||||
type: Sequelize.JSON,
|
||||
allowNull: true
|
||||
},
|
||||
expiry_date: {
|
||||
type: Sequelize.DATE,
|
||||
allowNull: false
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user