Skip to content

Commit

Permalink
Sonntag 17:30
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Hornburger committed Mar 24, 2024
1 parent d5a8a61 commit cb9a055
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/datenstrukturen/bauteilstruktur_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ interface IBauteilstruktur {

const Bauteilshema = new mongoose.Schema({

_id: false,
BauteilID: {type: String, required: false},
Bauteilname: {type: String, required: false},
Listenposition: {type: Number, required: false},
Geschossliste: [Geschossshema],
});
}, {_id: false});

export { IBauteilstruktur, Bauteilshema };

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

interface IFolderstruktur {

FolderID: string;
ParentfolderID: string;
Name: string;
Beschreibung: string;
Zeitstempel: number;
Zeitstring: string;
};

const Foldershema = new mongoose.Schema({

FolderID: {type: String, required: false},
ParentfolderID: {type: String, required: false},
Name: {type: String, required: false},
Beschreibung: {type: String, required: false},
Zeitstempel: {type: Number, required: false},
Zeitstring: {type: String, required: false},

}, {_id: false});

export { IFolderstruktur, Foldershema }
5 changes: 5 additions & 0 deletions src/datenstrukturen/projektestruktur_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import mongoose from "mongoose";
import {IVerfasserstruktur, Verfassershema} from "./verfasserstruktur_server";
import {IProjektbeteiligtestruktur, Projektbeteiligteeshema} from "./projektbeteiligtestruktur_server";
import {Bauteilshema, IBauteilstruktur} from "./bauteilstruktur_server";
import {Foldershema, IFolderstruktur} from "./folderstruktur_server";

interface IProjektestruktur {

Expand Down Expand Up @@ -52,6 +53,8 @@ interface IProjektestruktur {
BautagebuchFolderID: string;
BaustellenLOPFolderID: string;
LastLOPEintragnummer: number;

Folderliste: IFolderstruktur[];
};

const Projekteshema = new mongoose.Schema({
Expand Down Expand Up @@ -106,6 +109,8 @@ const Projekteshema = new mongoose.Schema({
BautagebuchFolderID: {type: String, required: false},
BaustellenLOPFolderID: {type: String, required: false},
BilderFolderID: {type: String, required: false},

Folderliste: [Foldershema],
});

export { IProjektestruktur, Projekteshema };
Expand Down

0 comments on commit cb9a055

Please sign in to comment.