Added a basic item add page/route
This commit is contained in:
21
src/models/item.js
Normal file
21
src/models/item.js
Normal file
@ -0,0 +1,21 @@
|
||||
module.exports = (sequelize, Sequelize) => {
|
||||
|
||||
const Item = sequelize.define("item", {
|
||||
|
||||
name: {
|
||||
type: Sequelize.STRING
|
||||
},
|
||||
|
||||
manufacturer: {
|
||||
type: Sequelize.STRING
|
||||
},
|
||||
|
||||
type: {
|
||||
type: Sequelize.STRING
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
return Item;
|
||||
|
||||
};
|
Reference in New Issue
Block a user