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