Skip to content

Commit

Permalink
Mittwoch 19:00
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Hornburger committed Feb 14, 2024
1 parent 0a9c47e commit 77b49a5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/datenstrukturen/rechnungstruktur_server.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
import mongoose from "mongoose";
import {IVerfasserstruktur, Verfassershema} from "./verfasserstruktur_server";

interface IRechnungstruktur {

RechnungID: string;
Nummer: number;
Zeitstempel: number;
Verfasser: IVerfasserstruktur;
EmpfaengerExternIDListe: string[];
EmpfaengerInternIDListe: string[];
CcEmpfaengerExternIDListe: string[];
CcEmpfaengerInternIDListe: string[];
Betreff: string;
Nachricht: string;
Filename: string;
FileID: string;
GesendetZeitstring: string;
GesendetZeitstempel: number;

CanDelete?: boolean;
};
Expand All @@ -14,6 +26,18 @@ const Rechnungshema = new mongoose.Schema({
RechnungID: {type: String, required: false},
Nummer: {type: Number, required: false, default: 0},
Zeitstempel: {type: Number, required: false, default: 0},
Verfasser: Verfassershema,
Betreff: {type: String, required: false},
Nachricht: {type: String, required: false},
CcEmpfaengerExternIDListe: {type: [String], required: false},
CcEmpfaengerInternIDListe: {type: [String], required: false},
EmpfaengerExternIDListe: {type: [String], required: false},
EmpfaengerInternIDListe: {type: [String], required: false},
Filename: {type: String, required: false},
FileID: {type: String, required: false},
GesendetZeitstempel: {type: Number, required: false},
GesendetZeitstring: {type: String, required: false},


}, {_id: false});

Expand Down
1 change: 1 addition & 0 deletions src/datenstrukturen/simontabellestruktur_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const Simontabelleshema = new mongoose.Schema({
Verfasser: Verfassershema,
Eintraegeliste: [Simontabelleeintragshema],
Rechnungen: [Rechnungshema],

});

export { ISimontabellestruktur, Simontabelleshema };

0 comments on commit 77b49a5

Please sign in to comment.