Added state selector for world

This commit is contained in:
Alexis
2025-03-04 19:02:27 +01:00
parent 204de011f6
commit 282aabb7fa
7 changed files with 54 additions and 9 deletions

View File

@@ -1,8 +1,7 @@
import { z } from "zod"
import type { Calendar } from "./CalendarConfig"
import { rpgColorSchema, type RPGColor } from "./Color"
export type WorldState = "published" | "draft" | "archived"
import type { ContentState } from "./Entity"
export interface World {
id?: number
@@ -11,7 +10,7 @@ export interface World {
color?: RPGColor
calendars?: Calendar[]
gmId?: string
state?: WorldState
state?: ContentState
createdAt?: string
updatedAt?: string
}