mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-17 21:25:54 +02:00
25 lines
525 B
JavaScript
25 lines
525 B
JavaScript
/**
|
|
*
|
|
* @param {Parse} Parse
|
|
*/
|
|
exports.up = async Parse => {
|
|
const className = 'contracts_templateLinks';
|
|
const schema = new Parse.Schema(className);
|
|
|
|
schema.addString('Type');
|
|
schema.addPointer('TemplatePtr', 'contracts_Template');
|
|
schema.addArray('Placeholders');
|
|
|
|
return schema.save();
|
|
};
|
|
|
|
/**
|
|
*
|
|
* @param {Parse} Parse
|
|
*/
|
|
exports.down = async Parse => {
|
|
const className = 'contracts_templateLinks';
|
|
const schema = new Parse.Schema(className);
|
|
return schema.purge().then(() => schema.delete());
|
|
};
|