feat: implement autosave feature in signyourself

This commit is contained in:
prafull-opensignlabs
2024-08-22 20:28:49 +05:30
parent e9c6509970
commit 476dcf051c
4 changed files with 85 additions and 100 deletions
@@ -0,0 +1,21 @@
/**
*
* @param {Parse} Parse
*/
exports.up = async Parse => {
const className = 'contracts_Document';
const schema = new Parse.Schema(className);
schema.addBoolean('IsSignyourself');
return schema.update();
};
/**
*
* @param {Parse} Parse
*/
exports.down = async Parse => {
const className = 'contracts_Document';
const schema = new Parse.Schema(className);
schema.deleteField('IsSignyourself');
return schema.update();
};