16 lines
368 B
JavaScript
16 lines
368 B
JavaScript
const { DataTypes } = require('sequelize');
|
|
|
|
module.exports = (sequelize) => {
|
|
sequelize.define('need_init', {
|
|
id: {
|
|
allowNull: false,
|
|
autoIncrement: true,
|
|
primaryKey: true,
|
|
type: DataTypes.INTEGER
|
|
},
|
|
name: {
|
|
allowNull: false,
|
|
type: DataTypes.STRING
|
|
}
|
|
})
|
|
} |