forked from mHealthKenya/ushauri_api
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
program set up with otp, added chat bot rating and logs
- Loading branch information
1 parent
6dbebeb
commit 61c8660
Showing
5 changed files
with
788 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Oops, something went wrong.