Skip to content

Commit 8a71247

Browse files
committed
modified organization schema
1 parent de9caf5 commit 8a71247

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

server/models/organizations.model.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = function (app) {
1313
logo: { type: String },
1414
coverImg: { type: String },
1515
userId: { type: String, required: true },
16-
description: { type: String, required: true },
16+
description: { type: String },
1717
publicEmail: { type: String },
1818
website: { type: String },
1919
// will be generated automatically
@@ -23,7 +23,7 @@ module.exports = function (app) {
2323
updatedAt: { type: Date, default: Date.now },
2424
isEnabled: {
2525
type: Boolean,
26-
default: true
26+
default: false
2727
},
2828
wasSeeded: { type: Boolean }
2929
});

server/seeder/development/organizations.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ module.exports = (seederstore) => {
1717
description: '{{lorem.text}}',
1818
isVerified: () => seedHelpers.randomItem([true, false]),
1919
deletedAt: null,
20+
isEnabled: true,
2021
createdAt: '{{date.recent}}',
2122
updatedAt: '{{date.recent}}',
2223
wasSeeded: true

0 commit comments

Comments
 (0)