36 lines
776 B
TypeScript
36 lines
776 B
TypeScript
|
|
import { CONSEGNA_CONSTRAINTS, UTENTE_CONSTRAINTS } from "../validation/constraints.js";
|
||
|
|
|
||
|
|
export type Ruolo = (typeof UTENTE_CONSTRAINTS.ruolo.allowedValues)[number];
|
||
|
|
|
||
|
|
export type StatoConsegna = (typeof CONSEGNA_CONSTRAINTS.stato.allowedValues)[number];
|
||
|
|
|
||
|
|
export interface Utente {
|
||
|
|
UtenteID: number;
|
||
|
|
Nome: string;
|
||
|
|
Cognome: string;
|
||
|
|
Email: string;
|
||
|
|
PasswordHash: string;
|
||
|
|
Ruolo: Ruolo;
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface Cliente {
|
||
|
|
ClienteID: number;
|
||
|
|
Nome: string;
|
||
|
|
Cognome: string;
|
||
|
|
Via: string;
|
||
|
|
Comune: string;
|
||
|
|
Provincia: string;
|
||
|
|
Telefono: string;
|
||
|
|
Email: string;
|
||
|
|
Note: string | null;
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface Consegna {
|
||
|
|
ConsegnaID: number;
|
||
|
|
ClienteID: number;
|
||
|
|
DataRitiro: Date | null;
|
||
|
|
DataConsegna: Date | null;
|
||
|
|
Stato: StatoConsegna;
|
||
|
|
ChiaveConsegna: string;
|
||
|
|
}
|