diff --git a/src/models/intent.model.js b/src/models/intent.model.js new file mode 100644 index 0000000..532f855 --- /dev/null +++ b/src/models/intent.model.js @@ -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; +}; \ No newline at end of file