Stores a custom Mailchimp tag related to a course_language_group. When a new row is added, the system automatically creates a corresponding tag in Mailchimp. This tag is assigned to all students who have given marketing consent for the associated course.
Name | Type | Default | Nullable | Children | Parents | Comment |
---|---|---|---|---|---|---|
course_language_group_id | uuid | false | public.course_language_groups | The course language group ID that the tag is associated with | ||
created_at | timestamp with time zone | now() | false | Timestamp when the flag was created. | ||
deleted_at | timestamp with time zone | true | Timestamp when the flag was deleted. If null, the record is not deleted. | |||
id | uuid | uuid_generate_v4() | false | A unique, stable identifier for the record. | ||
marketing_mailing_list_access_token_id | uuid | false | public.marketing_mailing_list_access_tokens | Id of the mailing list this tag is associated with | ||
tag_id | varchar(255) | false | Mailchimp tag id assigned to the course-language group. | |||
tag_name | varchar(255) | false | Name of the Mailchimp tag assigned to the course-language group. | |||
updated_at | timestamp with time zone | now() | false | Timestamp when the flag was last updated. The field is updated automatically by the set_timestamp trigger. |
Name | Type | Definition |
---|---|---|
mailchimp_course_tags_course_language_group_id_fkey | FOREIGN KEY | FOREIGN KEY (course_language_group_id) REFERENCES course_language_groups(id) |
mailchimp_course_tags_marketing_mailing_list_access_token__fkey | FOREIGN KEY | FOREIGN KEY (marketing_mailing_list_access_token_id) REFERENCES marketing_mailing_list_access_tokens(id) ON DELETE CASCADE |
mailchimp_course_tags_pkey | PRIMARY KEY | PRIMARY KEY (id) |
unique_course_tag | UNIQUE | UNIQUE (course_language_group_id, tag_name) |
Name | Definition |
---|---|
mailchimp_course_tags_pkey | CREATE UNIQUE INDEX mailchimp_course_tags_pkey ON public.mailchimp_course_tags USING btree (id) |
unique_course_tag | CREATE UNIQUE INDEX unique_course_tag ON public.mailchimp_course_tags USING btree (course_language_group_id, tag_name) |
Name | Definition |
---|---|
set_timestamp | CREATE TRIGGER set_timestamp BEFORE UPDATE ON public.mailchimp_course_tags FOR EACH ROW EXECUTE FUNCTION trigger_set_timestamp() |
Generated by tbls