chore: Remove default values from fields of database models

This commit is contained in:
Faruk AYDIN
2022-10-19 19:22:11 +02:00
parent dc0f374110
commit 74aed833bf
5 changed files with 13 additions and 9 deletions

View File

@@ -15,7 +15,7 @@ class Step extends Base {
appKey?: string;
type!: IStep['type'];
connectionId?: string;
status = 'incomplete';
status: 'incomplete' | 'completed';
position!: number;
parameters: IJSONObject;
connection?: Connection;
@@ -35,7 +35,11 @@ class Step extends Base {
appKey: { type: ['string', 'null'], minLength: 1, maxLength: 255 },
type: { type: 'string', enum: ['action', 'trigger'] },
connectionId: { type: ['string', 'null'], format: 'uuid' },
status: { type: 'string', enum: ['incomplete', 'completed'] },
status: {
type: 'string',
enum: ['incomplete', 'completed'],
default: 'incomplete',
},
position: { type: 'integer' },
parameters: { type: 'object' },
},