feat: Convert model files to JS
This commit is contained in:
18
packages/backend/src/models/config.js
Normal file
18
packages/backend/src/models/config.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import Base from './base';
|
||||
|
||||
class Config extends Base {
|
||||
static tableName = 'config';
|
||||
|
||||
static jsonSchema = {
|
||||
type: 'object',
|
||||
required: ['key', 'value'],
|
||||
|
||||
properties: {
|
||||
id: { type: 'string', format: 'uuid' },
|
||||
key: { type: 'string', minLength: 1 },
|
||||
value: { type: 'object' },
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export default Config;
|
Reference in New Issue
Block a user