-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Conditional input interview transcript #62
Changes from 6 commits
4c028fe
4808cba
448645d
4cb8070
a16c81a
f3a2ce0
09b26c4
d7b1dbf
eef9e85
f4ab7fc
a3befdf
63e4131
dea49b4
f038cc3
7f73768
73dadd1
440e469
296bde0
5f3b94b
9f1892b
495e699
f8ff332
9c89c5d
8b48db7
38d512c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
CREATE TABLE IF NOT EXISTS "analysis_feedback" ( | ||
"id" text PRIMARY KEY NOT NULL, | ||
"user_id" text NOT NULL, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why foreign key user_id is of type text? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As we are storing the IDs in AlphaNumeric Format so that type text is used |
||
"analysis_id" uuid NOT NULL, | ||
"is_found_useful" boolean NOT NULL, | ||
"impact" text, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's column 'impact' here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done! |
||
"createdAt" timestamp DEFAULT now() | ||
); | ||
--> statement-breakpoint | ||
CREATE TABLE IF NOT EXISTS "interview_analysis" ( | ||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, | ||
"user_id" text NOT NULL, | ||
"candidate_name" text NOT NULL, | ||
"interviewer_name" text NOT NULL, | ||
"interview_recording_link" text, | ||
"interview_transcript_link" text, | ||
"job_description_document_link" text NOT NULL, | ||
"transcript" text, | ||
"questions_answers" text, | ||
"parsed_job_description" text, | ||
"analysis_result" text, | ||
"conversation" text, | ||
"status" text, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we convert 'status' to enum? |
||
"created_at" timestamp DEFAULT now() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We're missing 'updated_at' column. |
||
); | ||
--> statement-breakpoint | ||
DO $$ BEGIN | ||
ALTER TABLE "analysis_feedback" ADD CONSTRAINT "analysis_feedback_analysis_id_interview_analysis_id_fk" FOREIGN KEY ("analysis_id") REFERENCES "public"."interview_analysis"("id") ON DELETE no action ON UPDATE no action; | ||
EXCEPTION | ||
WHEN duplicate_object THEN null; | ||
END $$; | ||
--> statement-breakpoint | ||
DO $$ BEGIN | ||
ALTER TABLE "interview_analysis" ADD CONSTRAINT "interview_analysis_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE no action ON UPDATE no action; | ||
EXCEPTION | ||
WHEN duplicate_object THEN null; | ||
END $$; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why primary key id is of type text?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we are storing the IDs in AlphaNumeric Format so that type text is used