Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/joshsoftware/lingo.ai into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
sourabh-josh committed Sep 23, 2024
2 parents 84f1b5a + 822750f commit 053547d
Show file tree
Hide file tree
Showing 64 changed files with 2,364 additions and 1,409 deletions.
4 changes: 4 additions & 0 deletions app/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
DATABASE_URL=XXXXXXXX
UPLOADTHING_SECRET=XXXXXXXX
UPLOADTHING_APP_ID=XXXXXXXX
NEXT_PUBLIC_MICROSERVICE_URL='http://127.0.0.1:8000'
80 changes: 0 additions & 80 deletions app/migrations/0000_curved_sunset_bain.sql

This file was deleted.

20 changes: 20 additions & 0 deletions app/migrations/0000_rainy_brother_voodoo.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
CREATE TABLE IF NOT EXISTS "registrations" (
"id" text PRIMARY KEY NOT NULL,
"userName" text NOT NULL,
"userEmail" text NOT NULL,
"createdAt" timestamp DEFAULT now()
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "transcriptions" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"registrationId" text NOT NULL,
"transcription" text NOT NULL,
"createdAt" timestamp DEFAULT now(),
"documentUrl" text NOT NULL
);
--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "transcriptions" ADD CONSTRAINT "transcriptions_registrationId_registrations_id_fk" FOREIGN KEY ("registrationId") REFERENCES "public"."registrations"("id") ON DELETE cascade ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
2 changes: 2 additions & 0 deletions app/migrations/0001_vengeful_black_tarantula.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE "transcriptions" RENAME COLUMN "transcription" TO "translation";--> statement-breakpoint
ALTER TABLE "transcriptions" ADD COLUMN "summary" text NOT NULL;
1 change: 1 addition & 0 deletions app/migrations/0002_youthful_justice.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "transcriptions" ADD COLUMN "documentName" text NOT NULL;
Loading

0 comments on commit 053547d

Please sign in to comment.