mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2025-12-01 15:05:45 +01:00
added init files
This commit is contained in:
15
backend/src/models/User.ts
Normal file
15
backend/src/models/User.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
// 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;
|
||||
}
|
||||
Reference in New Issue
Block a user