25 lines
516 B
JavaScript
25 lines
516 B
JavaScript
import Base from './base.js';
|
|
|
|
class Datastore extends Base {
|
|
static tableName = 'datastore';
|
|
|
|
static jsonSchema = {
|
|
type: 'object',
|
|
required: ['key', 'value', 'scopeId'],
|
|
|
|
properties: {
|
|
id: { type: 'string', format: 'uuid' },
|
|
key: { type: 'string', minLength: 1 },
|
|
value: { type: 'string' },
|
|
scope: {
|
|
type: 'string',
|
|
enum: ['flow'],
|
|
default: 'flow',
|
|
},
|
|
scopeId: { type: 'string', format: 'uuid' },
|
|
},
|
|
};
|
|
}
|
|
|
|
export default Datastore;
|