mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
15 lines
535 B
JavaScript
15 lines
535 B
JavaScript
const { DataTypes } = require('sequelize');
|
|
const sequelize = require('../../config/db.config');
|
|
|
|
const mdl_PlanPolicies = sequelize.define('PlanPolicy', {
|
|
policy_id: { type: DataTypes.BIGINT, primaryKey: true, autoIncrement: true },
|
|
plan_id: { type: DataTypes.BIGINT, allowNull: false, unique: true },
|
|
access_rules: { type: DataTypes.JSONB, allowNull: false, defaultValue: [], label: 'Access Rules' },
|
|
}, {
|
|
tableName: 'plan_policies',
|
|
timestamps: true,
|
|
paranoid: false,
|
|
});
|
|
|
|
module.exports = mdl_PlanPolicies;
|