A full-featured CRM built with React, shadcn/ui, and Supabase.
Feat(database): Update columns to match the CRM demo types
Jonathan ARNAULTf3289e25494e
diff --git a/supabase/migrations/20240729082231_companies_add_columns.sql b/supabase/migrations/20240729082231_companies_add_columns.sqlnew file mode 100644index 00000000..0f72e00c--- /dev/null+++ b/supabase/migrations/20240729082231_companies_add_columns.sql@@ -0,0 +1,19 @@+alter table "public"."companies" rename column "linkedIn" to "linkedin_url";++alter table "public"."companies" add column "context_links" json;++alter table "public"."companies" add column "country" text;++alter table "public"."companies" add column "description" text;++alter table "public"."companies" add column "nb_contacts" integer;++alter table "public"."companies" add column "nb_deals" integer;++alter table "public"."companies" add column "revenue" text;++alter table "public"."companies" add column "tax_identifier" text;++alter table "public"."companies" drop column "logo";++alter table "public"."companies" add column "logo" jsonb;diff --git a/supabase/migrations/20240729085310_contact_add_columns.sql b/supabase/migrations/20240729085310_contact_add_columns.sqlnew file mode 100644index 00000000..f24b26d1--- /dev/null+++ b/supabase/migrations/20240729085310_contact_add_columns.sql@@ -0,0 +1,5 @@+alter table "public"."contacts" add column "linkedin_url" text;++alter table "public"."contacts" add column "nb_notes" integer;++alter table "public"."contactNotes" drop column "type";\ No newline at end of filediff --git a/supabase/migrations/20240729090503_deal_add_columns.sql b/supabase/migrations/20240729090503_deal_add_columns.sqlnew file mode 100644index 00000000..259956c8--- /dev/null+++ b/supabase/migrations/20240729090503_deal_add_columns.sql@@ -0,0 +1,9 @@+alter table "public"."dealNotes" drop column "status";++alter table "public"."deals" drop column "start_at";++alter table "public"."deals" drop column "type";++alter table "public"."deals" rename column "type" to "category";++alter table "public"."deals" add column "nb_notes" integer;