mirror of
https://github.com/YuzuZensai/Minikura.git
synced 2026-03-30 19:27:38 +00:00
✨ feat: initial prototype
This commit is contained in:
31
apps/backend/src/domain/entities/enums.ts
Normal file
31
apps/backend/src/domain/entities/enums.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
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];
|
||||
Reference in New Issue
Block a user