Skip to content

Commit

Permalink
Dienstag 21:30
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Hornburger committed Nov 21, 2023
1 parent b6f353d commit 3d9da18
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 17 deletions.
11 changes: 6 additions & 5 deletions src/datenstrukturen/mitarbeiterstruktur_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Favoritenshema, IFavoritenstruktur} from "./favoritenstruktur_server";
import mongoose from "mongoose";
import {IMeintagstruktur, Meintagshema} from "./meintagstruktur_server";
import {IMeinewochestruktur, Meinewocheshema} from "./meinewochestruktur_server";
import {Urlaubsshema} from "./urlaubsstruktur_server";
import {IUrlaubsstruktur, Urlaubsshema} from "./urlaubsstruktur_server";

interface IMitarbeiterstruktur {

Expand All @@ -24,11 +24,12 @@ interface IMitarbeiterstruktur {
Zeitstring: string;
Zeitstempel: number;
Fachbereich: string;
Deleted: boolean;
Favoritenliste: IFavoritenstruktur[];
Meintagliste: IMeintagstruktur[];
Meinewocheliste: IMeinewochestruktur[];
Deleted: boolean;
Archiviert: boolean;
Favoritenliste: IFavoritenstruktur[];
Meintagliste: IMeintagstruktur[];
Meinewocheliste: IMeinewochestruktur[];
Urlaubsliste: IUrlaubsstruktur[],
};

const Mitarbeitershema = new mongoose.Schema({
Expand Down
17 changes: 5 additions & 12 deletions src/datenstrukturen/urlaubsstruktur_server.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
import mongoose from "mongoose";
import {IUrlauzeitspannenstruktur, Urlaubszeitspannenshema} from "./urlauzeitspannenstruktur_server";

interface IUrlaubsstruktur {

Startstempel: number;
Endestempel: number;
Jahr: number;
VertreterID: string;
Startstring: string;
Endestring: string;
Status: string;
Resturlaub: number;
Zeitspannen: IUrlauzeitspannenstruktur[];
};

const Urlaubsshema = new mongoose.Schema({

Startstempel: {type: Number, required: false},
Endestempel: {type: Number, required: false},
Jahr: {type: Number, required: false},
VertreterID: {type: String, required: false},
Startstring: {type: String, required: false},
Endestring: {type: String, required: false},
Status: {type: String, required: false},
Resturlaub: {type: Number, required: false},
Zeitspannen: [Urlaubszeitspannenshema]

}, {_id: false});

Expand Down
28 changes: 28 additions & 0 deletions src/datenstrukturen/urlauzeitspannenstruktur_server.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import mongoose from "mongoose";

interface IUrlauzeitspannenstruktur {

Startstempel: number;
Endestempel: number;
VertreterID: string;
FreigeberID: string;
Startstring: string;
Endestring: string;
Status: string;
Tageanzahl: number;
};

const Urlaubszeitspannenshema = new mongoose.Schema({

Startstempel: {type: Number, required: false},
Endestempel: {type: Number, required: false},
VertreterID: {type: String, required: false},
FreigeberID: {type: String, required: false},
Startstring: {type: String, required: false},
Endestring: {type: String, required: false},
Status: {type: String, required: false},
Tageanzahl: {type: Number, required: false},

}, {_id: false});

export { IUrlauzeitspannenstruktur, Urlaubszeitspannenshema };

0 comments on commit 3d9da18

Please sign in to comment.