refactor: generate and use Supabase TypeScript types

Co-authored-by: Moheeb Zara <1184415+virgilvox@users.noreply.github.com>
This commit is contained in:
v0
2026-03-11 08:12:39 +00:00
co-authored by Moheeb Zara
parent c34d5d9529
commit 2e136b5f55
18 changed files with 1135 additions and 342 deletions
+2 -12
View File
@@ -3,19 +3,9 @@
import { useState } from 'react'
import { Plus, X, Pencil } from 'lucide-react'
import { createContact, updateContact, deleteContact } from '@/lib/actions'
import type { Tables } from '@/types/database'
interface Contact {
id: string
name: string
contact_type: string
email?: string
phone?: string
details?: string
note?: string
group_label?: string
tags?: string[]
code?: string
}
type Contact = Tables<'contacts'>
const CATEGORY_COLORS: Record<string, string> = {
vendor: 'text-primary border-primary/30 bg-primary/5',