mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-09-13 12:47:39 +02:00
* Added basic staff functions -wip * Fix: Use proper route for staff member creation * Fixed errors in confirm, invite and register routes. * Also return invited staff members when getting staff members * Updated error handling * Allow global admin to add other global admins * Sort staff members by name * Added dummy implementation of granting access to staff members * Render tenant logo, if set * Fix delete * Make invited but not confirmed user entries deletable. * Added staff onboarding with passkey -wip * Fix delete route * Fix passkey setup flow for staff * Fix lint * Fix lint * Fix some unit tests * Updated docs * Refactored staff-service, fixed tests * Setup state db migrations --------- Co-authored-by: Karl Ludwig Weise <ludwig@ludwigweise.de> Co-authored-by: Hendrik Belitz <hendrik@innovation-through-understanding.de>
6 lines
621 B
SQL
6 lines
621 B
SQL
ALTER TABLE "tenant" ALTER COLUMN "setup_state" SET DATA TYPE text;--> statement-breakpoint
|
|
ALTER TABLE "tenant" ALTER COLUMN "setup_state" SET DEFAULT 'SETTINGS'::text;--> statement-breakpoint
|
|
DROP TYPE "public"."setup_state";--> statement-breakpoint
|
|
CREATE TYPE "public"."setup_state" AS ENUM('SETTINGS', 'AGENTS', 'CHANNELS', 'STAFF', 'READY');--> statement-breakpoint
|
|
ALTER TABLE "tenant" ALTER COLUMN "setup_state" SET DEFAULT 'SETTINGS'::"public"."setup_state";--> statement-breakpoint
|
|
ALTER TABLE "tenant" ALTER COLUMN "setup_state" SET DATA TYPE "public"."setup_state" USING "setup_state"::"public"."setup_state"; |