Index

public.course_audiences

Description

The audience course is meant for

Columns

Name Type Default Nullable Children Parents Comment
audience varchar(255) false A single audience type that a course is meant for.
course_id uuid false public.courses An audience belongs to a course.
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.
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.

Constraints

Name Type Definition
course_audiences_audience_not_null n NOT NULL audience
course_audiences_course_id_fkey FOREIGN KEY FOREIGN KEY (course_id) REFERENCES courses(id)
course_audiences_course_id_not_null n NOT NULL course_id
course_audiences_created_at_not_null n NOT NULL created_at
course_audiences_id_not_null n NOT NULL id
course_audiences_pkey PRIMARY KEY PRIMARY KEY (id)
course_audiences_updated_at_not_null n NOT NULL updated_at

Indexes

Name Definition
course_audiences_pkey CREATE UNIQUE INDEX course_audiences_pkey ON public.course_audiences USING btree (id)

Triggers

Name Definition
set_timestamp CREATE TRIGGER set_timestamp BEFORE UPDATE ON public.course_audiences FOR EACH ROW EXECUTE FUNCTION trigger_set_timestamp()

Relations

er

Generated by tbls