19 lines
658 B
TypeScript
19 lines
658 B
TypeScript
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
|
||
}
|