mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-17 21:25:54 +02:00
32 lines
699 B
JavaScript
32 lines
699 B
JavaScript
/**
|
|
*
|
|
* @param {Parse} Parse
|
|
*/
|
|
exports.up = async Parse => {
|
|
// TODO: set className here
|
|
const className = 'contracts_Document';
|
|
const schema = new Parse.Schema(className);
|
|
schema.addPointer('DeclineBy', '_User');
|
|
// 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_Document';
|
|
const schema = new Parse.Schema(className);
|
|
schema.deleteField('DeclineBy');
|
|
// TODO: Set the schema here
|
|
// Example:
|
|
// schema.deleteField('name').deleteField('cash');
|
|
|
|
return schema.update();
|
|
};
|