change create, update clp of contracts_Users class

This commit is contained in:
prafull-opensignlabs
2023-11-16 11:09:56 +05:30
parent f61dae35ff
commit 2b67af6097
@@ -18,22 +18,21 @@ exports.up = async Parse => {
schema.addString('Next_billing_date');
schema.addBoolean('IsContactEntry');
schema.addBoolean('ShareWithTeam');
schema.addPointer('TenantId', "partners_Tenant")
schema.addPointer('UserId', "_User")
schema.addPointer("CreatedBy", "_User")
schema.addPointer('TenantId', 'partners_Tenant');
schema.addPointer('UserId', '_User');
schema.addPointer('CreatedBy', '_User');
schema.setCLP({
get: {},
find: {},
count: {},
create: {},
update: {},
create: { '*': true },
update: { '*': true },
delete: {},
addField: {},
});
return schema.save();
// const config = new Config(process.env.APP_ID, process.env.PARSE_MOUNT);
// const schema = await config.database.loadSchema();
// await schema.setPermissions('myclass', {