merge: 최종 main을 Profile 포괄 권한 제거에 통합
This commit is contained in:
@@ -41,6 +41,19 @@ export interface TurnDaemonStatus {
|
||||
checkpoint?: TurnCheckpoint;
|
||||
}
|
||||
|
||||
export type RuntimeAutorunUserOption = 'develop' | 'warp' | 'recruit' | 'recruit_high' | 'train' | 'battle' | 'chief';
|
||||
|
||||
export interface RuntimeAutorunUserSettings {
|
||||
limitMinutes: number;
|
||||
options: RuntimeAutorunUserOption[];
|
||||
}
|
||||
|
||||
export interface RuntimeGameSettingsPatch {
|
||||
turnTermMinutes?: number;
|
||||
blockGeneralCreate?: 0 | 1 | 2;
|
||||
autorunUser?: RuntimeAutorunUserSettings | null;
|
||||
}
|
||||
|
||||
export type TurnDaemonCommand =
|
||||
| {
|
||||
type: 'run';
|
||||
@@ -49,6 +62,12 @@ export type TurnDaemonCommand =
|
||||
targetTime?: string;
|
||||
budget?: TurnRunBudget;
|
||||
}
|
||||
| {
|
||||
type: 'updateRuntimeSettings';
|
||||
requestId?: string;
|
||||
actionId: string;
|
||||
settings: RuntimeGameSettingsPatch;
|
||||
}
|
||||
| { type: 'pause'; requestId?: string; reason?: string }
|
||||
| { type: 'resume'; requestId?: string; reason?: string }
|
||||
| { type: 'shutdown'; requestId?: string; reason?: string }
|
||||
@@ -284,6 +303,29 @@ export type TurnDaemonCommandResult =
|
||||
commandType: TurnDaemonCommand['type'];
|
||||
reason: string;
|
||||
}
|
||||
| {
|
||||
type: 'updateRuntimeSettings';
|
||||
ok: true;
|
||||
actionId: string;
|
||||
settings: RuntimeGameSettingsPatch;
|
||||
termChanged: boolean;
|
||||
previousTurnTermMinutes: number;
|
||||
turnTermMinutes: number;
|
||||
previousClockBaseTime: string;
|
||||
clockBaseTime: string;
|
||||
lastTurnTime: string;
|
||||
shiftedGenerals: number;
|
||||
reprojectedAuctions: number;
|
||||
reprojectedMessages: number;
|
||||
reprojectedVotes: number;
|
||||
checkpoint?: TurnCheckpoint;
|
||||
}
|
||||
| {
|
||||
type: 'updateRuntimeSettings';
|
||||
ok: false;
|
||||
actionId: string;
|
||||
reason: string;
|
||||
}
|
||||
| {
|
||||
type: 'shiftSchedule';
|
||||
ok: true;
|
||||
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE "gateway_runtime_action"
|
||||
ADD COLUMN "payload" JSONB NOT NULL DEFAULT '{}'::jsonb;
|
||||
@@ -77,36 +77,36 @@ enum GatewaySourceMode {
|
||||
}
|
||||
|
||||
model AppUser {
|
||||
id String @id @default(uuid())
|
||||
loginId String @unique @map("login_id")
|
||||
displayName String @unique @map("display_name")
|
||||
passwordHash String @map("password_hash")
|
||||
passwordSalt String @map("password_salt")
|
||||
passwordResetRequired Boolean @default(false) @map("password_reset_required")
|
||||
roles Json @default(dbgenerated("'[]'::jsonb"))
|
||||
sanctions Json @default(dbgenerated("'{}'::jsonb"))
|
||||
oauthType OAuthType @default(NONE) @map("oauth_type")
|
||||
oauthId String? @unique @map("oauth_id")
|
||||
email String? @unique
|
||||
oauthInfo Json @default(dbgenerated("'{}'::jsonb")) @map("oauth_info")
|
||||
picture String @default("default.jpg")
|
||||
imageServer Int @default(0) @map("image_server")
|
||||
iconUpdatedAt DateTime? @map("icon_updated_at")
|
||||
iconRevision DateTime? @map("icon_revision")
|
||||
profileIconResetAt DateTime? @map("profile_icon_reset_at")
|
||||
iconRetiredAt DateTime? @map("icon_retired_at")
|
||||
thirdPartyUse Boolean @default(true) @map("third_party_use")
|
||||
termsAcceptedAt DateTime? @map("terms_accepted_at")
|
||||
privacyAcceptedAt DateTime? @map("privacy_accepted_at")
|
||||
kakaoVerifiedAt DateTime? @map("kakao_verified_at")
|
||||
kakaoTalkVerifiedUntil DateTime? @map("kakao_talk_verified_until")
|
||||
kakaoGraceStartedAt DateTime @default(now()) @map("kakao_grace_started_at")
|
||||
kakaoGraceUntil DateTime? @map("kakao_grace_until")
|
||||
deleteAfter DateTime? @map("delete_after")
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
lastLoginAt DateTime? @map("last_login_at")
|
||||
legacyData Json @default(dbgenerated("'{}'::jsonb")) @map("legacy_data")
|
||||
id String @id @default(uuid())
|
||||
loginId String @unique @map("login_id")
|
||||
displayName String @unique @map("display_name")
|
||||
passwordHash String @map("password_hash")
|
||||
passwordSalt String @map("password_salt")
|
||||
passwordResetRequired Boolean @default(false) @map("password_reset_required")
|
||||
roles Json @default(dbgenerated("'[]'::jsonb"))
|
||||
sanctions Json @default(dbgenerated("'{}'::jsonb"))
|
||||
oauthType OAuthType @default(NONE) @map("oauth_type")
|
||||
oauthId String? @unique @map("oauth_id")
|
||||
email String? @unique
|
||||
oauthInfo Json @default(dbgenerated("'{}'::jsonb")) @map("oauth_info")
|
||||
picture String @default("default.jpg")
|
||||
imageServer Int @default(0) @map("image_server")
|
||||
iconUpdatedAt DateTime? @map("icon_updated_at")
|
||||
iconRevision DateTime? @map("icon_revision")
|
||||
profileIconResetAt DateTime? @map("profile_icon_reset_at")
|
||||
iconRetiredAt DateTime? @map("icon_retired_at")
|
||||
thirdPartyUse Boolean @default(true) @map("third_party_use")
|
||||
termsAcceptedAt DateTime? @map("terms_accepted_at")
|
||||
privacyAcceptedAt DateTime? @map("privacy_accepted_at")
|
||||
kakaoVerifiedAt DateTime? @map("kakao_verified_at")
|
||||
kakaoTalkVerifiedUntil DateTime? @map("kakao_talk_verified_until")
|
||||
kakaoGraceStartedAt DateTime @default(now()) @map("kakao_grace_started_at")
|
||||
kakaoGraceUntil DateTime? @map("kakao_grace_until")
|
||||
deleteAfter DateTime? @map("delete_after")
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
lastLoginAt DateTime? @map("last_login_at")
|
||||
legacyData Json @default(dbgenerated("'{}'::jsonb")) @map("legacy_data")
|
||||
icons UserIcon[]
|
||||
specialAccessGrants SpecialAccountAccessGrant[]
|
||||
|
||||
@@ -243,6 +243,7 @@ model GatewayRuntimeAction {
|
||||
profileName String @map("profile_name")
|
||||
profile GatewayProfile @relation(fields: [profileName], references: [profileName], onDelete: Cascade)
|
||||
action String
|
||||
payload Json @default(dbgenerated("'{}'::jsonb"))
|
||||
durationMinutes Int? @map("duration_minutes")
|
||||
scheduledAt DateTime? @map("scheduled_at")
|
||||
reason String?
|
||||
|
||||
@@ -171,6 +171,7 @@ export interface TurnEngineWorldStateUpdateInput {
|
||||
clockMode: string;
|
||||
clockWallAnchor: Date;
|
||||
lastTurnTick: bigint;
|
||||
config: InputJsonValue;
|
||||
meta: InputJsonValue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user