feat: create public profile URLs for users and develop functionality to make the report template public

This commit is contained in:
RaktimaNXG
2024-05-27 21:08:05 +05:30
parent f5e216fedc
commit 1764d7f9ba
8 changed files with 349 additions and 36 deletions
@@ -0,0 +1,33 @@
/**
*
* @param {Parse} Parse
*/
exports.up = async Parse => {
// TODO: set className here
const className = 'contracts_Template';
const schema = new Parse.Schema(className);
schema.addArray('PublicRole');
// TODO: Set the schema here
// Example:
// schema.addString('name').addNumber('cash');
return schema.update();
};
/**
*
* @param {Parse} Parse
*/
exports.down = async Parse => {
// TODO: set className here
const className = 'contracts_Template';
const schema = new Parse.Schema(className);
schema.deleteField('PublicRole');
// TODO: Set the schema here
// Example:
// schema.deleteField('name').deleteField('cash');
return schema.update();
};