diff --git a/tenant-migrations/0003_complex_the_call.sql b/tenant-migrations/0003_complex_the_call.sql index b5582f4..0ad22e4 100644 --- a/tenant-migrations/0003_complex_the_call.sql +++ b/tenant-migrations/0003_complex_the_call.sql @@ -61,7 +61,7 @@ ALTER TABLE "appointment" ADD COLUMN "auth_tag" text;--> statement-breakpoint ALTER TABLE "appointment" ADD COLUMN "created_at" timestamp DEFAULT now();--> statement-breakpoint ALTER TABLE "appointment" ADD COLUMN "updated_at" timestamp DEFAULT now();--> statement-breakpoint ALTER TABLE "appointment_key_share" ADD CONSTRAINT "appointment_key_share_appointment_id_appointment_id_fk" FOREIGN KEY ("appointment_id") REFERENCES "public"."appointment"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint -ALTER TABLE "client_tunnel_staff_key_share" ADD CONSTRAINT "client_tunnel_staff_key_share_tunnel_id_client_appointment_tunnel_id_fk" FOREIGN KEY ("tunnel_id") REFERENCES "public"."client_appointment_tunnel"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "client_tunnel_staff_key_share" ADD CONSTRAINT "client_tun_staff_keyShare_tId_client_app_tId_fk" FOREIGN KEY ("tunnel_id") REFERENCES "public"."client_appointment_tunnel"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint ALTER TABLE "appointment" ADD CONSTRAINT "appointment_tunnel_id_client_appointment_tunnel_id_fk" FOREIGN KEY ("tunnel_id") REFERENCES "public"."client_appointment_tunnel"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint ALTER TABLE "agent" DROP COLUMN "description";--> statement-breakpoint ALTER TABLE "appointment" DROP COLUMN "client_id";--> statement-breakpoint diff --git a/tenant-migrations/0009_far_korg.sql b/tenant-migrations/0009_far_korg.sql index e072f54..5e9a9f0 100644 --- a/tenant-migrations/0009_far_korg.sql +++ b/tenant-migrations/0009_far_korg.sql @@ -1,6 +1,5 @@ CREATE TYPE "public"."notification_type" AS ENUM('APPOINTMENT_CONFIRMED', 'APPOINTMENT_CANCELED');--> statement-breakpoint ALTER TABLE "notification" ADD COLUMN "type" "notification_type" DEFAULT 'APPOINTMENT_CONFIRMED' NOT NULL;--> statement-breakpoint ALTER TABLE "notification" ADD COLUMN "meta_data" json;--> statement-breakpoint -ALTER TABLE "notification" ADD COLUMN "created_at" timestamp DEFAULT now() NOT NULL;--> statement-breakpoint ALTER TABLE "notification" DROP COLUMN "title";--> statement-breakpoint ALTER TABLE "notification" DROP COLUMN "description"; \ No newline at end of file diff --git a/tenant-migrations/meta/0003_snapshot.json b/tenant-migrations/meta/0003_snapshot.json index 83b6cc0..003a044 100644 --- a/tenant-migrations/meta/0003_snapshot.json +++ b/tenant-migrations/meta/0003_snapshot.json @@ -620,8 +620,8 @@ }, "indexes": {}, "foreignKeys": { - "client_tunnel_staff_key_share_tunnel_id_client_appointment_tunnel_id_fk": { - "name": "client_tunnel_staff_key_share_tunnel_id_client_appointment_tunnel_id_fk", + "client_tun_staff_keyShare_tId_client_app_tId_fk": { + "name": "client_tun_staff_keyShare_tId_client_app_tId_fk", "tableFrom": "client_tunnel_staff_key_share", "tableTo": "client_appointment_tunnel", "columnsFrom": ["tunnel_id"], diff --git a/tenant-migrations/meta/0004_snapshot.json b/tenant-migrations/meta/0004_snapshot.json index 4924b51..9934f17 100644 --- a/tenant-migrations/meta/0004_snapshot.json +++ b/tenant-migrations/meta/0004_snapshot.json @@ -635,8 +635,8 @@ }, "indexes": {}, "foreignKeys": { - "client_tunnel_staff_key_share_tunnel_id_client_appointment_tunnel_id_fk": { - "name": "client_tunnel_staff_key_share_tunnel_id_client_appointment_tunnel_id_fk", + "client_tun_staff_keyShare_tId_client_app_tId_fk": { + "name": "client_tun_staff_keyShare_tId_client_app_tId_fk", "tableFrom": "client_tunnel_staff_key_share", "tableTo": "client_appointment_tunnel", "columnsFrom": ["tunnel_id"], diff --git a/tenant-migrations/meta/0005_snapshot.json b/tenant-migrations/meta/0005_snapshot.json index b0d71d5..9dd07d9 100644 --- a/tenant-migrations/meta/0005_snapshot.json +++ b/tenant-migrations/meta/0005_snapshot.json @@ -649,8 +649,8 @@ }, "indexes": {}, "foreignKeys": { - "client_tunnel_staff_key_share_tunnel_id_client_appointment_tunnel_id_fk": { - "name": "client_tunnel_staff_key_share_tunnel_id_client_appointment_tunnel_id_fk", + "client_tun_staff_keyShare_tId_client_app_tId_fk": { + "name": "client_tun_staff_keyShare_tId_client_app_tId_fk", "tableFrom": "client_tunnel_staff_key_share", "tableTo": "client_appointment_tunnel", "columnsFrom": ["tunnel_id"], diff --git a/tenant-migrations/meta/0006_snapshot.json b/tenant-migrations/meta/0006_snapshot.json index 297fd52..23eb512 100644 --- a/tenant-migrations/meta/0006_snapshot.json +++ b/tenant-migrations/meta/0006_snapshot.json @@ -655,8 +655,8 @@ }, "indexes": {}, "foreignKeys": { - "client_tunnel_staff_key_share_tunnel_id_client_appointment_tunnel_id_fk": { - "name": "client_tunnel_staff_key_share_tunnel_id_client_appointment_tunnel_id_fk", + "client_tun_staff_keyShare_tId_client_app_tId_fk": { + "name": "client_tun_staff_keyShare_tId_client_app_tId_fk", "tableFrom": "client_tunnel_staff_key_share", "tableTo": "client_appointment_tunnel", "columnsFrom": ["tunnel_id"], diff --git a/tenant-migrations/meta/0007_snapshot.json b/tenant-migrations/meta/0007_snapshot.json index 18a4fd1..c7bf07d 100644 --- a/tenant-migrations/meta/0007_snapshot.json +++ b/tenant-migrations/meta/0007_snapshot.json @@ -599,8 +599,8 @@ }, "indexes": {}, "foreignKeys": { - "client_tunnel_staff_key_share_tunnel_id_client_appointment_tunnel_id_fk": { - "name": "client_tunnel_staff_key_share_tunnel_id_client_appointment_tunnel_id_fk", + "client_tun_staff_keyShare_tId_client_app_tId_fk": { + "name": "client_tun_staff_keyShare_tId_client_app_tId_fk", "tableFrom": "client_tunnel_staff_key_share", "tableTo": "client_appointment_tunnel", "columnsFrom": ["tunnel_id"], diff --git a/tenant-migrations/meta/0008_snapshot.json b/tenant-migrations/meta/0008_snapshot.json index 2ff4af2..c501312 100644 --- a/tenant-migrations/meta/0008_snapshot.json +++ b/tenant-migrations/meta/0008_snapshot.json @@ -634,8 +634,8 @@ }, "indexes": {}, "foreignKeys": { - "client_tunnel_staff_key_share_tunnel_id_client_appointment_tunnel_id_fk": { - "name": "client_tunnel_staff_key_share_tunnel_id_client_appointment_tunnel_id_fk", + "client_tun_staff_keyShare_tId_client_app_tId_fk": { + "name": "client_tun_staff_keyShare_tId_client_app_tId_fk", "tableFrom": "client_tunnel_staff_key_share", "tableTo": "client_appointment_tunnel", "columnsFrom": ["tunnel_id"], diff --git a/tenant-migrations/meta/0009_snapshot.json b/tenant-migrations/meta/0009_snapshot.json index 43ce789..b814a87 100644 --- a/tenant-migrations/meta/0009_snapshot.json +++ b/tenant-migrations/meta/0009_snapshot.json @@ -634,8 +634,8 @@ }, "indexes": {}, "foreignKeys": { - "client_tunnel_staff_key_share_tunnel_id_client_appointment_tunnel_id_fk": { - "name": "client_tunnel_staff_key_share_tunnel_id_client_appointment_tunnel_id_fk", + "client_tun_staff_keyShare_tId_client_app_tId_fk": { + "name": "client_tun_staff_keyShare_tId_client_app_tId_fk", "tableFrom": "client_tunnel_staff_key_share", "tableTo": "client_appointment_tunnel", "columnsFrom": ["tunnel_id"], diff --git a/tenant-migrations/meta/0010_snapshot.json b/tenant-migrations/meta/0010_snapshot.json index dbe1079..fedd03d 100644 --- a/tenant-migrations/meta/0010_snapshot.json +++ b/tenant-migrations/meta/0010_snapshot.json @@ -693,8 +693,8 @@ }, "indexes": {}, "foreignKeys": { - "client_tunnel_staff_key_share_tunnel_id_client_appointment_tunnel_id_fk": { - "name": "client_tunnel_staff_key_share_tunnel_id_client_appointment_tunnel_id_fk", + "client_tun_staff_keyShare_tId_client_app_tId_fk": { + "name": "client_tun_staff_keyShare_tId_client_app_tId_fk", "tableFrom": "client_tunnel_staff_key_share", "tableTo": "client_appointment_tunnel", "columnsFrom": ["tunnel_id"],