From 50c755c067a1eb039ba98a599ce6391dc7b74ac7 Mon Sep 17 00:00:00 2001 From: Apher Date: Sun, 28 Jun 2026 18:50:01 +0000 Subject: [PATCH] Add Intent module for SQL --- src/models/intent.model.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/models/intent.model.js 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