Add intent model
This commit is contained in:
parent
e106a10374
commit
50d5000f74
23
models/intent.js
Normal file
23
models/intent.js
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
module.exports = (sequelize, DataTypes) => {
|
||||||
|
const Intent = sequelize.define("intents", {
|
||||||
|
id: {
|
||||||
|
type: DataTypes.INTEGER,
|
||||||
|
primaryKey: true,
|
||||||
|
autoIncrement: true,
|
||||||
|
allowNull: false
|
||||||
|
},
|
||||||
|
name: {
|
||||||
|
type: DataTypes.STRING,
|
||||||
|
allowNull: false
|
||||||
|
},
|
||||||
|
examples: {
|
||||||
|
type: DataTypes.ARRAY(DataTypes.STRING),
|
||||||
|
allowNull: true
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
tableName: "intents",
|
||||||
|
timestamps: false
|
||||||
|
});
|
||||||
|
|
||||||
|
return Intent;
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue
Block a user