mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2025-12-01 06:55:45 +01:00
15 lines
285 B
TypeScript
15 lines
285 B
TypeScript
// backend/src/models/User.ts
|
|
export interface User {
|
|
id: string;
|
|
email: string;
|
|
password: string; // gehashed
|
|
name: string;
|
|
role: 'admin' | 'instandhalter' | 'user';
|
|
createdAt: Date;
|
|
}
|
|
|
|
export interface UserSession {
|
|
userId: string;
|
|
token: string;
|
|
expiresAt: Date;
|
|
} |