From d6ae29cd12d9e0bacad361aaeb33525ffc81abf8 Mon Sep 17 00:00:00 2001 From: R40fendt Date: Mon, 2 Feb 2026 12:10:05 +0100 Subject: [PATCH] Added Formular and Field --- formular.dto.ts | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 formular.dto.ts diff --git a/formular.dto.ts b/formular.dto.ts new file mode 100644 index 0000000..0f2e659 --- /dev/null +++ b/formular.dto.ts @@ -0,0 +1,38 @@ +export class Formular { + public id: number; + public name: string; + public minitext: string; + public ispublic: boolean; + public multiple: boolean; + public fields: Field[]; +} + +export enum FieldType { + TEXT = "text", + PASSWORD = "password", + NUMBER = "number", + RANGE = "range", + DATE = "date", + TIME = "time", + CHECKBOX = "checkbox", + RADIO = "radio", + COLOR = "color", + SUBMIT = "submit", + TEXTAREA = "textarea" +} + +export class Field { + id?: number; + formular: number; + name: string; + displayname?: string | null; + value: string; + displayvalue?: string | null; + placeholder?: string | null; + type: FieldType; + title?: string | null; required: boolean; + maxlength?: number | null; + min?: number | null; + max?: number | null; + checked?: boolean | null; +} \ No newline at end of file