-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/joshsoftware/lingo.ai into dev
- Loading branch information
Showing
64 changed files
with
2,364 additions
and
1,409 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 $$; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE "transcriptions" ADD COLUMN "documentName" text NOT NULL; |
Oops, something went wrong.