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

@@ -4,7 +4,6 @@ import { AES, enc } from 'crypto-js';
import Base from './base';
import User from './user';
import Step from './step';
import App from './app';
import appConfig from '../config/app';
import { IJSONObject } from '@automatisch/types';
import Telemetry from '../helpers/telemetry';
@@ -15,7 +14,7 @@ class Connection extends Base {
data: string;
formattedData?: IJSONObject;
userId!: string;
verified = false;
verified: boolean;
draft: boolean;
count?: number;
flowCount?: number;
@@ -32,7 +31,7 @@ class Connection extends Base {
data: { type: 'string' },
formattedData: { type: 'object' },
userId: { type: 'string', format: 'uuid' },
verified: { type: 'boolean' },
verified: { type: 'boolean', default: false },
draft: { type: 'boolean' },
},
};