@churchsoln/dbms 1.0.16 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
up: async (queryInterface, DataTypes) => {
|
|
5
|
+
return Promise.all([
|
|
6
|
+
queryInterface.addColumn("User", "isPublic", {
|
|
7
|
+
type: DataTypes.BOOLEAN,
|
|
8
|
+
defaultValue: true
|
|
9
|
+
})
|
|
10
|
+
]);
|
|
11
|
+
},
|
|
12
|
+
down: async (queryInterface) => {},
|
|
13
|
+
};
|
package/models/church/user.js
CHANGED
|
@@ -109,6 +109,7 @@ module.exports = (sequelize, DataTypes) => {
|
|
|
109
109
|
directoryVisibility: { type: DataTypes.BOOLEAN, defaultValue: false },
|
|
110
110
|
userLoginAccess: { type: DataTypes.BOOLEAN, defaultValue: false },
|
|
111
111
|
isEmailSubscribed: { type: DataTypes.BOOLEAN, defaultValue: false },
|
|
112
|
+
isPublic: { type: DataTypes.BOOLEAN, defaultValue: true },
|
|
112
113
|
status: { type: DataTypes.BOOLEAN, defaultValue: true },
|
|
113
114
|
createdAt: { type: DataTypes.DATE },
|
|
114
115
|
updatedAt: { type: DataTypes.DATE },
|
|
@@ -184,6 +185,7 @@ module.exports = (sequelize, DataTypes) => {
|
|
|
184
185
|
"directoryVisibility",
|
|
185
186
|
"userLoginAccess",
|
|
186
187
|
"isEmailSubscribed",
|
|
188
|
+
"isPublic",
|
|
187
189
|
"status",
|
|
188
190
|
"createdAt",
|
|
189
191
|
"updatedAt",
|
|
@@ -237,6 +239,7 @@ module.exports = (sequelize, DataTypes) => {
|
|
|
237
239
|
"userLoginAccess",
|
|
238
240
|
"isEmailSubscribed",
|
|
239
241
|
"membershipTypeId",
|
|
242
|
+
"isPublic",
|
|
240
243
|
"status",
|
|
241
244
|
];
|
|
242
245
|
user.listFields = [
|
|
@@ -251,6 +254,7 @@ module.exports = (sequelize, DataTypes) => {
|
|
|
251
254
|
"address",
|
|
252
255
|
"isUserAuthenticated",
|
|
253
256
|
"membershipTypeId",
|
|
257
|
+
"isPublic",
|
|
254
258
|
"status",
|
|
255
259
|
];
|
|
256
260
|
user.transferFields = [
|