Initial commit: spreewaldzeit + Dockerfile for Coolify (Next.js + Prisma/SQLite)

This commit is contained in:
2026-06-03 14:08:48 +02:00
committed by Ihor_Zhekov
commit bf5d79a919
94 changed files with 12480 additions and 0 deletions

19
types/index.ts Normal file
View File

@@ -0,0 +1,19 @@
import type { Apartment as PrismaApartment, Inquiry, Block } from "@prisma/client";
/** Apartment mit geparsten Feldern (features + images als Arrays statt JSON-String). */
export interface Apartment extends Omit<PrismaApartment, "features" | "images"> {
features: string[];
images: string[];
}
export type { Inquiry, Block };
export type InquiryStatus = "new" | "read" | "confirmed" | "declined" | "archived";
export const INQUIRY_STATUS_LABELS: Record<InquiryStatus, string> = {
new: "Neu",
read: "Gelesen",
confirmed: "Bestätigt",
declined: "Abgelehnt",
archived: "Archiviert",
};