This table stores the country of each student in a course.
Name | Type | Default | Nullable | Children | Parents | Comment |
---|---|---|---|---|---|---|
country_code | varchar(255) | false | The alpha-2 code of the student country. | |||
course_id | uuid | false | public.courses public.course_instance_enrollments | |||
course_instance_id | uuid | false | public.course_instances public.course_instance_enrollments | The course instance of the course the student partakes in. | ||
created_at | timestamp with time zone | now() | false | Timestamp when the record was created. | ||
deleted_at | timestamp with time zone | true | Timestamp when the record was deleted. If null, the record is not deleted. | |||
id | uuid | uuid_generate_v4() | false | A unique, stable identifier for the record. | ||
user_id | uuid | false | public.users public.course_instance_enrollments | The user that sent the country. |
Name | Type | Definition |
---|---|---|
student_countries_course_id_fkey | FOREIGN KEY | FOREIGN KEY (course_id) REFERENCES courses(id) |
student_countries_course_instance_id_fkey | FOREIGN KEY | FOREIGN KEY (course_instance_id) REFERENCES course_instances(id) |
student_countries_pkey | PRIMARY KEY | PRIMARY KEY (id) |
student_countries_user_id_course_id_course_instance_id_fkey | FOREIGN KEY | FOREIGN KEY (user_id, course_id, course_instance_id) REFERENCES course_instance_enrollments(user_id, course_id, course_instance_id) |
student_countries_user_id_fkey | FOREIGN KEY | FOREIGN KEY (user_id) REFERENCES users(id) |
Name | Definition |
---|---|
student_countries_pkey | CREATE UNIQUE INDEX student_countries_pkey ON public.student_countries USING btree (id) |
Generated by tbls