feat: initial prototype

This commit is contained in:
2026-02-13 15:52:13 +07:00
parent 134351b326
commit e8dbefde43
140 changed files with 12390 additions and 1369 deletions

View 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];