Skip to content

Commit

Permalink
added menstrual cycle crud
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald-pro committed Sep 12, 2024
1 parent 119ddb7 commit 6c5a12d
Show file tree
Hide file tree
Showing 2 changed files with 582 additions and 262 deletions.
32 changes: 32 additions & 0 deletions models/n_menstrual.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
const sequelize = require("../db_config");
const Sequelize = require("sequelize");
const Joi = require("joi");

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

period_start:Sequelize.DATEONLY,
period_end:Sequelize.DATEONLY,
fertile_start:Sequelize.DATEONLY,
fertile_end:Sequelize.DATEONLY,
ovulation:Sequelize.DATEONLY,
predicted_period_start:Sequelize.DATEONLY,
predicted_period_end:Sequelize.DATEONLY,
cycle_length:Sequelize.INTEGER,
period_length:Sequelize.INTEGER,
user_id:Sequelize.INTEGER,
status:Sequelize.ENUM('Active','Deleted'),
}, {
timestamps: true,
paranoid: true,
underscored: true,
freezeTableName: true,
tableName: "tbl_nishauri_menstrual"
}
);
exports.NMenstrual = NMenstrual;
Loading

0 comments on commit 6c5a12d

Please sign in to comment.