Files
Minikura/apps/backend/src/domain/entities/enums.ts

32 lines
1.0 KiB
TypeScript
Raw Normal View History

2026-02-13 15:52:13 +07:00
import {
MinecraftServerJarType,
GameMode as PrismaGameMode,
ServerDifficulty as PrismaServerDifficulty,
ServerType as PrismaServerType,
ServiceType as PrismaServiceType,
ReverseProxyServerType,
} from "@minikura/db";
export enum UserRole {
ADMIN = "admin",
USER = "user",
}
export const MinecraftJarType = MinecraftServerJarType;
export type MinecraftJarType = (typeof MinecraftJarType)[keyof typeof MinecraftJarType];
export const ReverseProxyType = ReverseProxyServerType;
export type ReverseProxyType = (typeof ReverseProxyType)[keyof typeof ReverseProxyType];
export const ServerType = PrismaServerType;
export type ServerType = (typeof ServerType)[keyof typeof ServerType];
export const ServiceType = PrismaServiceType;
export type ServiceType = (typeof ServiceType)[keyof typeof ServiceType];
export const ServerDifficulty = PrismaServerDifficulty;
export type ServerDifficulty = (typeof ServerDifficulty)[keyof typeof ServerDifficulty];
export const GameMode = PrismaGameMode;
export type GameMode = (typeof GameMode)[keyof typeof GameMode];