Private Groups + Load-Templates Features

This commit is contained in:
Josepablo Cruz Baas
2026-03-31 22:47:31 +00:00
parent 3a823174ed
commit d06696fd0c
18 changed files with 672 additions and 55 deletions

View File

@@ -90,7 +90,9 @@ const schema = new Schema({
payment_term: { type: String },
terms_and_conditions: { type: String },
createdAt: { type : Date, required : true, default : () => { return Date.now(); } }
createdAt: { type : Date, required : true, default : () => { return Date.now(); } },
privacy: { type: Boolean, default: false }, /// Disables visibility on the directory, only enabled for private groups.
});
module.exports = mongoose.model( "loads", schema );