mirror of
https://github.com/bitbaum/petvity.git
synced 2026-12-04 07:50:03 +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>
14 lines
316 B
TypeScript
14 lines
316 B
TypeScript
import type { DefaultSession } from "next-auth";
|
|
|
|
export type UserRole = "pet_owner" | "veterinarian" | "pet_sitter" | "groomer" | "admin";
|
|
|
|
declare module "next-auth" {
|
|
interface Session {
|
|
user: {
|
|
id: string;
|
|
role: UserRole;
|
|
emailVerified: Date | null;
|
|
} & DefaultSession["user"];
|
|
}
|
|
}
|