27 lines
435 B
TypeScript
27 lines
435 B
TypeScript
export type UserRole = "LEHRKRAFT" | "RAUMBETREUER"
|
|
|
|
export type TicketStatus = "OPEN" | "IN_PROGRESS" | "CLOSED"
|
|
|
|
export interface Room {
|
|
id: number
|
|
name: string
|
|
}
|
|
|
|
export interface User {
|
|
id: number
|
|
name: string
|
|
email: string
|
|
role: UserRole
|
|
supervisedRooms?: Room[]
|
|
}
|
|
|
|
export interface Ticket {
|
|
id: number
|
|
room: Room
|
|
title: string
|
|
description: string
|
|
status: TicketStatus
|
|
createdAt: string
|
|
owner: User
|
|
}
|
|
|