feat: emlak CRM iskelet kurulumu
- schema.ts tamamen yeniden yazıldı (properties, customers, customer_searches, property_matches, presentations, investors, activities, tenant_settings) - Sidebar emlak modüllerine güncellendi (İlanlar, Müşteriler, Yatırımcılar, Sunumlar, Aktiviteler) - Eski CRM lib dosyaları temizlendi (finance, invoice, lead, task, software, vs.) - Yeni modül dizinleri oluşturuldu (stub pages) - command-search emlak navigasyonuna güncellendi - site-header temizlendi - Typecheck: 0 hata (chart.tsx template hariç)
This commit is contained in:
@@ -4,7 +4,9 @@ import { headers } from "next/headers";
|
||||
import { ID, Permission, Role } from "node-appwrite";
|
||||
|
||||
import { createAdminClient } from "./server";
|
||||
import { DATABASE_ID, TABLES, type AuditAction } from "./schema";
|
||||
import { DATABASE_ID, TABLES } from "./schema";
|
||||
|
||||
type AuditAction = string;
|
||||
|
||||
export async function logAudit(args: {
|
||||
tenantId: string;
|
||||
@@ -23,7 +25,7 @@ export async function logAudit(args: {
|
||||
const { tablesDB } = createAdminClient();
|
||||
await tablesDB.createRow(
|
||||
DATABASE_ID,
|
||||
TABLES.auditLogs,
|
||||
"audit_logs",
|
||||
ID.unique(),
|
||||
{
|
||||
tenantId: args.tenantId,
|
||||
|
||||
Reference in New Issue
Block a user