chore: Adjust template model file extension to ee
This commit is contained in:
20
packages/backend/src/models/template.ee.js
Normal file
20
packages/backend/src/models/template.ee.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import Base from './base.js';
|
||||
|
||||
class Template extends Base {
|
||||
static tableName = 'templates';
|
||||
|
||||
static jsonSchema = {
|
||||
type: 'object',
|
||||
required: ['name'],
|
||||
|
||||
properties: {
|
||||
id: { type: 'string', format: 'uuid' },
|
||||
name: { type: 'string', minLength: 1 },
|
||||
flowData: { type: 'object' },
|
||||
createdAt: { type: 'string' },
|
||||
updatedAt: { type: 'string' },
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export default Template;
|
||||
Reference in New Issue
Block a user