Add intent model

This commit is contained in:
Apher 2026-07-17 04:14:23 +00:00
parent e106a10374
commit 50d5000f74

23
models/intent.js Normal file
View 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;
};