This table is used to check if user has access to a course that is only joinable by a join code. The join code is located in courses table
Name | Type | Default | Nullable | Children | Parents | Comment |
---|---|---|---|---|---|---|
course_id | uuid | false | public.courses | Course that the user has access to. | ||
created_at | timestamp with time zone | now() | false | Timestamp of 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. | ||
updated_at | timestamp with time zone | now() | false | Timestamp when the record was last updated. The field is updated automatically by the set_timestamp trigger. | ||
user_id | uuid | false | public.users | User who has the access to the course. |
Name | Type | Definition |
---|---|---|
join_code_uses_course_id_fkey | FOREIGN KEY | FOREIGN KEY (course_id) REFERENCES courses(id) |
join_code_uses_pkey | PRIMARY KEY | PRIMARY KEY (id) |
join_code_uses_user_id_fkey | FOREIGN KEY | FOREIGN KEY (user_id) REFERENCES users(id) |
Name | Definition |
---|---|
join_code_uses_pkey | CREATE UNIQUE INDEX join_code_uses_pkey ON public.join_code_uses USING btree (id) |
Name | Definition |
---|---|
set_timestamp | CREATE TRIGGER set_timestamp BEFORE UPDATE ON public.join_code_uses FOR EACH ROW EXECUTE FUNCTION trigger_set_timestamp() |
Generated by tbls