feat: Implement datastore built-in app

This commit is contained in:
Faruk AYDIN
2024-02-27 19:01:46 +01:00
parent 636870a075
commit bdb2f24a81
8 changed files with 172 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import Base from './base.js';
class Datastore extends Base {
static tableName = 'datastore';
static jsonSchema = {
type: 'object',
required: ['key', 'value', 'scope', 'scopeId'],
properties: {
id: { type: 'string', format: 'uuid' },
key: { type: 'string', minLength: 1 },
value: { type: 'string', minLength: 1 },
scope: {
type: 'string',
enum: ['flow'],
default: 'flow',
},
scopeId: { type: 'string', format: 'uuid' },
},
};
}
export default Datastore;