From 81c0aec202f208fc1de5bbcc01930d611108a531 Mon Sep 17 00:00:00 2001 From: Mihajlo Medjedovic Date: Fri, 4 Aug 2023 08:52:53 +0200 Subject: [PATCH] chore: removed column.ts leftover --- client/src/app/editor/models/column.ts | 36 -------------------------- 1 file changed, 36 deletions(-) delete mode 100644 client/src/app/editor/models/column.ts diff --git a/client/src/app/editor/models/column.ts b/client/src/app/editor/models/column.ts deleted file mode 100644 index 903aa36..0000000 --- a/client/src/app/editor/models/column.ts +++ /dev/null @@ -1,36 +0,0 @@ -export enum ColumnType { - string = 'string', - number = 'number' -} - -export interface ColumnInterface { - id: number | undefined - name: string | undefined - type: ColumnType | undefined - length: number | undefined -} - -export class Column implements ColumnInterface { - public id: number | undefined - public name: string | undefined - public type: ColumnType | undefined - public length: number | undefined - public static fromPlainObject(obj: object) { - return Object.assign(new Column(), obj) - } - - constructor(id?: number, name?: string, type?: ColumnType, length?: number) { - this.id = id - this.name = name - this.type = type - this.length = length - } - - get hsType() { - return ( - (this.type === ColumnType.string && 'text') || - (this.type === ColumnType.number && 'numeric') || - null - ) - } -}