Skip to content

Commit

Permalink
program set up with otp, added chat bot rating and logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald-pro committed May 28, 2024
1 parent 6dbebeb commit 61c8660
Show file tree
Hide file tree
Showing 5 changed files with 788 additions and 284 deletions.
24 changes: 24 additions & 0 deletions models/n_chat_log.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const sequelize = require("../db_config");
const Sequelize = require("sequelize");
const Joi = require("joi");

const NChatLogs = sequelize.sequelize.define(
"tbl_nishauri_chatbot_logs", {
id: {
type: Sequelize.INTEGER,
primaryKey: true,
autoIncrement: true
},

user_id:Sequelize.INTEGER,
quiz:Sequelize.STRING,
response:Sequelize.STRING,
}, {
timestamps: true,
paranoid: true,
underscored: true,
freezeTableName: true,
tableName: "tbl_nishauri_chatbot_logs"
}
);
exports.NChatLogs = NChatLogs;
24 changes: 24 additions & 0 deletions models/n_program_otp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const sequelize = require("../db_config");
const Sequelize = require("sequelize");
const Joi = require("joi");

const NprogramOTP = sequelize.sequelize.define(
"tbl_nishauri_program_otp", {
id: {
type: Sequelize.INTEGER,
primaryKey: true,
autoIncrement: true
},

user_id:Sequelize.INTEGER,
program_id:Sequelize.INTEGER,
program_otp:Sequelize.STRING,
}, {
timestamps: true,
paranoid: true,
underscored: true,
freezeTableName: true,
tableName: "tbl_nishauri_program_otp"
}
);
exports.NprogramOTP = NprogramOTP;
24 changes: 24 additions & 0 deletions models/n_reviews.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const sequelize = require("../db_config");
const Sequelize = require("sequelize");
const Joi = require("joi");

const NReviews = sequelize.sequelize.define(
"tbl_nishauri_reviews", {
id: {
type: Sequelize.INTEGER,
primaryKey: true,
autoIncrement: true
},

user_id:Sequelize.INTEGER,
rate:Sequelize.INTEGER,
reviews:Sequelize.STRING,
}, {
timestamps: true,
paranoid: true,
underscored: true,
freezeTableName: true,
tableName: "tbl_nishauri_reviews"
}
);
exports.NReviews = NReviews;
Loading

0 comments on commit 61c8660

Please sign in to comment.