Add Intent module for SQL

This commit is contained in:
Apher 2026-06-28 18:50:01 +00:00
parent 36bdabc581
commit 50c755c067

View 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;
};