mirror of
https://github.com/bitbaum/petvity.git
synced 2026-12-05 21:07:34 +01:00
Groomer joins vet and sitter everywhere a professional exists: - user_role enum + groomer_profiles (salon, services, from-price) + migration - /api/groomers browse + /api/groomers/me CRUD; role plumbed through registration (?role=groomer), become-a-pro, availability, bookings, conflict guard, admin verification, dashboards, sidebar - Find a Pro gains a Groomers tab; booking modal books grooming as a one-hour session with the salon's from-price in the header - Public pro profile renders groomers (salon, services, starting price) - Resident groomer Nadia Roth / Salon Pfotenschick seeds via the daily cron with a completed booking + 5-star review, so the tab ships alive - 6 grooming services in the professionals SSOT; role badge tokens in globals.css; ~25 strings x 9 locales Verified end-to-end locally: register groomer -> profile -> visible in browse -> booked 201 -> overlap 409. verify + build green. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
19 lines
831 B
SQL
19 lines
831 B
SQL
ALTER TYPE "public"."user_role" ADD VALUE 'groomer' BEFORE 'admin';--> statement-breakpoint
|
|
CREATE TABLE "groomer_profiles" (
|
|
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
"user_id" uuid NOT NULL,
|
|
"salon_name" varchar(200),
|
|
"bio" text,
|
|
"services" text,
|
|
"price_from" integer,
|
|
"city" varchar(100),
|
|
"country" varchar(2),
|
|
"phone" varchar(50),
|
|
"is_accepting_clients" boolean DEFAULT true NOT NULL,
|
|
"is_verified" boolean DEFAULT false NOT NULL,
|
|
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
CONSTRAINT "groomer_profiles_user_id_unique" UNIQUE("user_id")
|
|
);
|
|
--> statement-breakpoint
|
|
ALTER TABLE "groomer_profiles" ADD CONSTRAINT "groomer_profiles_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action; |