sozsoft-platform/ui/src/proxy/setup/models.ts
2026-08-09 11:52:28 +03:00

19 lines
658 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export type MigrateLogLevel = 'info' | 'warn' | 'error' | 'success' | 'restart' | 'done'
export interface MigrateLogEntry {
level: MigrateLogLevel | string
message: string
}
export interface SetupStatusDto {
/** Uygulamanın tam olarak açılabilmesi için veritabanı hazır mı (katalog + çekirdek şema). */
dbExists: boolean
/**
* Sunucu minimal kurulum modunda mı çalışıyor.
* /setup'a otomatik yönlendirme SADECE bu değer true iken yapılır.
*/
setupMode: boolean
/** Uygulanmamış EF migration sayısı — yalnızca yetkili kullanıcıya döner. */
pendingMigrationCount?: number | null
error?: string | null
}