static associate(models) {
            // define association here
            // container.belongsTo(models.container,
            // {
            // 	foreignKey: 'ctcode',
            // })
            msk_gudang.hasMany(models.msk_gudang_detail,
                {
                    foreignKey: {
                        name: "msk_id"
                    }, as : "masukGudangDetail"
                });
            msk_gudang.belongsTo(models.tblwarehouse,
                {
                    foreignKey: {
                        name: "wh_id"
                    }, as : "tblwarehouses"
                });
        }
/**
         * Helper method for defining associations.
         * This method is not a part of Sequelize lifecycle.
         * The `models/index` file will call this method automatically.
         */
Helper method for defining associations.
This method is not a part of Sequelize lifecycle.
The `models/index` file will call this method automatically.
Helper method for defining associations . This method is not a part of Sequelize lifecycle . The ` models / index ` file will call this method automatically .
static associate(models) {
            msk_gudang.hasMany(models.msk_gudang_detail,
                {
                    foreignKey: {
                        name: "msk_id"
                    }, as : "masukGudangDetail"
                });
            msk_gudang.belongsTo(models.tblwarehouse,
                {
                    foreignKey: {
                        name: "wh_id"
                    }, as : "tblwarehouses"
                });
        }
static associate ( models ) { msk_gudang . hasMany ( models . msk_gudang_detail , { foreignKey : { name : "msk_id" } , as : "masukGudangDetail" } ) ; msk_gudang . belongsTo ( models . tblwarehouse , { foreignKey : { name : "wh_id" } , as : "tblwarehouses" } ) ; }
Helper method for defining associations.
Helper method for defining associations .
// define association here // container.belongsTo(models.container, // { // 	foreignKey: 'ctcode', // })