56 lines
966 B
Python
56 lines
966 B
Python
|
from dataclasses import dataclass
|
||
|
|
||
|
@dataclass
|
||
|
class Kunde:
|
||
|
KundenNr: int
|
||
|
Vorname: str
|
||
|
Nachname: str
|
||
|
Strasse: str
|
||
|
Geburstdatum: str # Assuming timestamp as a string for simplicity
|
||
|
HausNr: str
|
||
|
PLZ: int
|
||
|
Email: str
|
||
|
Telefon: int
|
||
|
Ort: str
|
||
|
|
||
|
@dataclass
|
||
|
class Bestellung:
|
||
|
BestellNr: int
|
||
|
KundenNr: int
|
||
|
Rechnungsbetrag: int
|
||
|
Bestelldatum: str # Assuming timestamp as a string for simplicity
|
||
|
|
||
|
@dataclass
|
||
|
class Zutat:
|
||
|
ZutatenNr: int
|
||
|
Bezeichnung: str
|
||
|
Bestand: int
|
||
|
Nettopreis: int
|
||
|
Einheit: str
|
||
|
Kohlenhydrate: int
|
||
|
Kalorien: int
|
||
|
Protein: int
|
||
|
|
||
|
@dataclass
|
||
|
class Lieferant:
|
||
|
LieferantenNr: int
|
||
|
Ort: str
|
||
|
Strasse: str
|
||
|
Email: str
|
||
|
Telefon: str
|
||
|
Liferantenname: str
|
||
|
HausNr: str
|
||
|
PLZ: int
|
||
|
|
||
|
@dataclass
|
||
|
class LieferantContainsZutaten:
|
||
|
LieferantenNr: int
|
||
|
ZutatenNr: int
|
||
|
|
||
|
@dataclass
|
||
|
class BestellungContainsZutaten:
|
||
|
BestellNr: int
|
||
|
ZutatenNr: int
|
||
|
Menge: int
|
||
|
|