Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions source/data/tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ CREATE TABLE categories ("id" integer, "name" CHARACTER VARYING(max), "created_a
DROP TABLE IF EXISTS categorized_petitions;
CREATE TABLE categorized_petitions ("id" integer, "category_id" integer, "petition_id" integer, "created_at" timestamp without time zone, "updated_at" timestamp without time zone);
DROP TABLE IF EXISTS comments;
CREATE TABLE comments ("id" integer, "text" CHARACTER VARYING(max), "up_count" integer, "approved" boolean, "flagged_at" timestamp without time zone, "flagged_by_id" integer, "signature_id" integer, "created_at" timestamp without time zone, "updated_at" timestamp without time zone, "featured" boolean, "flag_reason" CHARACTER VARYING(max), "flag_recaptcha_score" numeric(3,2), "user_ip" CHARACTER VARYING(max), "user_agent" CHARACTER VARYING(max));
CREATE TABLE comments ("id" integer, "text" CHARACTER VARYING(max), "up_count" integer, "approved" boolean, "flagged_at" timestamp without time zone, "flagged_by_id" integer, "signature_id" integer, "created_at" timestamp without time zone, "updated_at" timestamp without time zone, "featured" boolean, "flag_reason" CHARACTER VARYING(max), "flag_recaptcha_score" numeric(3,2), "petition_id" bigint, "user_ip" CHARACTER VARYING(max), "user_agent" CHARACTER VARYING(max));
DROP TABLE IF EXISTS consent_content_versions;
CREATE TABLE consent_content_versions ("id" bigint, "organisation_id" integer, "privacy_policy_content_id" integer, "privacy_policy_content_version" integer, "tos_content_id" integer, "tos_content_version" integer, "data_processing_consent_label_content_id" integer, "data_processing_consent_label_content_version" integer, "created_at" timestamp without time zone, "external_id" CHARACTER VARYING(max), "consent_type" CHARACTER VARYING(max), "message_position" CHARACTER VARYING(max));
DROP TABLE IF EXISTS contents;
Expand All @@ -41,7 +41,7 @@ CREATE TABLE data_processing_consents ("id" bigint, "data_processing_consentable
DROP TABLE IF EXISTS drip_email_preferences;
CREATE TABLE drip_email_preferences ("id" integer, "organisation_id" integer, "slug" CHARACTER VARYING(max), "enabled" boolean, "created_at" timestamp without time zone, "updated_at" timestamp without time zone);
DROP TABLE IF EXISTS efforts;
CREATE TABLE efforts ("id" integer, "organisation_id" integer, "slug" CHARACTER VARYING(max), "title_default" CHARACTER VARYING(max), "who_default" CHARACTER VARYING(max), "created_at" timestamp without time zone, "updated_at" timestamp without time zone, "image_file_name" CHARACTER VARYING(max), "image_content_type" CHARACTER VARYING(max), "image_file_size" integer, "image_updated_at" timestamp without time zone, "ask_for_location" boolean, "effort_type" CHARACTER VARYING(max), "distance_limit" integer, "prompt_edit_individual_petition" boolean, "featured" boolean, "image_default_file_name" CHARACTER VARYING(max), "image_default_content_type" CHARACTER VARYING(max), "image_default_file_size" integer, "image_default_updated_at" timestamp without time zone, "target_collection_id" integer, "settings" CHARACTER VARYING(max), "hub_banner_file_name" CHARACTER VARYING(max), "hub_banner_content_type" CHARACTER VARYING(max), "hub_banner_file_size" integer, "hub_banner_updated_at" timestamp without time zone, "new_petition_form_banner_file_name" CHARACTER VARYING(max), "new_petition_form_banner_content_type" CHARACTER VARYING(max), "new_petition_form_banner_file_size" integer, "new_petition_form_banner_updated_at" timestamp without time zone, "new_petition_facebook_share_file_name" CHARACTER VARYING(max), "new_petition_facebook_share_content_type" CHARACTER VARYING(max), "new_petition_facebook_share_file_size" integer, "new_petition_facebook_share_updated_at" timestamp without time zone, "custom_goal" integer, "global_signature_count_add_amount" integer, "search_method" CHARACTER VARYING(max), "launched" boolean, "wizard_fields" CHARACTER VARYING(max), "search_kind" CHARACTER VARYING(max), "objective_collection_id" integer, "theme_id" bigint, "external_ids" CHARACTER VARYING(max));
CREATE TABLE efforts ("id" integer, "organisation_id" integer, "slug" CHARACTER VARYING(max), "title_default" CHARACTER VARYING(max), "who_default" CHARACTER VARYING(max), "created_at" timestamp without time zone, "updated_at" timestamp without time zone, "ask_for_location" boolean, "effort_type" CHARACTER VARYING(max), "distance_limit" integer, "prompt_edit_individual_petition" boolean, "featured" boolean, "image_default_file_name" CHARACTER VARYING(max), "image_default_content_type" CHARACTER VARYING(max), "image_default_file_size" integer, "image_default_updated_at" timestamp without time zone, "target_collection_id" integer, "settings" CHARACTER VARYING(max), "custom_goal" integer, "global_signature_count_add_amount" integer, "search_method" CHARACTER VARYING(max), "launched" boolean, "wizard_fields" CHARACTER VARYING(max), "search_kind" CHARACTER VARYING(max), "objective_collection_id" integer, "theme_id" bigint, "external_ids" CHARACTER VARYING(max));
DROP TABLE IF EXISTS email_opt_in_types;
CREATE TABLE email_opt_in_types ("id" bigint, "organisation_id" bigint, "kind" CHARACTER VARYING(max), "mailable" boolean, "active" boolean, "created_at" timestamp without time zone, "updated_at" timestamp without time zone, "context" CHARACTER VARYING(max), "external_id" CHARACTER VARYING(max), "content_settings" CHARACTER VARYING(max));
DROP TABLE IF EXISTS email_opt_in_uploads;
Expand All @@ -51,7 +51,7 @@ CREATE TABLE event_imports ("id" integer, "event_import_batch_id" integer, "impo
DROP TABLE IF EXISTS event_types;
CREATE TABLE event_types ("id" bigint, "organisation_id" bigint, "name" CHARACTER VARYING(max), "localized_names" CHARACTER VARYING(max), "created_at" timestamp without time zone, "updated_at" timestamp without time zone, "external_ids" CHARACTER VARYING(max), "crm_settings" CHARACTER VARYING(max));
DROP TABLE IF EXISTS events;
CREATE TABLE events ("id" integer, "title" CHARACTER VARYING(max), "slug" CHARACTER VARYING(max), "start_at" timestamp without time zone, "end_at" timestamp without time zone, "location_id" integer, "created_at" timestamp without time zone, "updated_at" timestamp without time zone, "user_id" integer, "organisation_id" integer, "calendar_id" integer, "admin_status" CHARACTER VARYING(max), "admin_reason" CHARACTER VARYING(max), "administered_at" timestamp without time zone, "max_attendees_count" integer, "locale" CHARACTER VARYING(max), "target_id" integer, "thank_attendee_email_content" CHARACTER VARYING(max), "approaching_event_attendee_email_content" CHARACTER VARYING(max), "notify_changes_to_attendees" boolean, "sharing_disabled" boolean, "host_address" CHARACTER VARYING(max), "cancel_reason" CHARACTER VARYING(max), "cancelled_at" timestamp without time zone, "local_chapter_id" integer, "launched_at" timestamp without time zone, "hidden_address" boolean, "promoted_from_waitlist_email_content" CHARACTER VARYING(max), "petition_id" integer, "extra_location_info" CHARACTER VARYING(max), "external_action_id" CHARACTER VARYING(max), "request_referer" CHARACTER VARYING(max), "time_zone" CHARACTER VARYING(max), "hidden_at" timestamp without time zone, "daisy_chain_id" bigint, "new_member_daisy_chain_id" bigint, "forum_enabled" boolean, "reviewer_id" integer, "event_type_id" integer, "region_id" bigint, "settings" CHARACTER VARYING(max), "campaigner_contactable" boolean, "crm_settings" CHARACTER VARYING(max), "created_by_id" bigint, "reviewer_type" CHARACTER VARYING(max), "mentor_id" bigint, "redirect_to" CHARACTER VARYING(max), "web_conference_url" CHARACTER VARYING(max), "virtual" boolean, "content_updated_at" timestamp without time zone, "external_ids" CHARACTER VARYING(max), "featured" boolean, "theme_id" bigint, "utm_params" CHARACTER VARYING(max), "location_venue" CHARACTER VARYING(max), "unconfirmed_location" boolean, "staff_led_organiser_type" CHARACTER VARYING(max), "staff_led_organiser_id" bigint, "unlisted_at" timestamp(6) without time zone, "send_prompt_to_repeat" boolean, "prompt_to_repeat_sent_at" timestamp(6) without time zone, "predecessor_event_id" bigint, "thank_attendee_email_subject" CHARACTER VARYING(max), "approaching_event_attendee_email_subject" CHARACTER VARYING(max), "promoted_from_waitlist_email_subject" CHARACTER VARYING(max), "attendee_confirmation_email_subject" CHARACTER VARYING(max), "attendee_confirmation_email_content" CHARACTER VARYING(max), "user_ip" CHARACTER VARYING(max), "user_agent" CHARACTER VARYING(max));
CREATE TABLE events ("id" integer, "title" CHARACTER VARYING(max), "slug" CHARACTER VARYING(max), "start_at" timestamp without time zone, "end_at" timestamp without time zone, "location_id" integer, "created_at" timestamp without time zone, "updated_at" timestamp without time zone, "user_id" integer, "organisation_id" integer, "calendar_id" integer, "admin_status" CHARACTER VARYING(max), "admin_reason" CHARACTER VARYING(max), "administered_at" timestamp without time zone, "max_attendees_count" integer, "locale" CHARACTER VARYING(max), "target_id" integer, "thank_attendee_email_content" CHARACTER VARYING(max), "approaching_event_attendee_email_content" CHARACTER VARYING(max), "notify_changes_to_attendees" boolean, "sharing_disabled" boolean, "host_address" CHARACTER VARYING(max), "cancel_reason" CHARACTER VARYING(max), "cancelled_at" timestamp without time zone, "local_chapter_id" integer, "launched_at" timestamp without time zone, "hidden_address" boolean, "promoted_from_waitlist_email_content" CHARACTER VARYING(max), "petition_id" integer, "extra_location_info" CHARACTER VARYING(max), "external_action_id" CHARACTER VARYING(max), "request_referer" CHARACTER VARYING(max), "time_zone" CHARACTER VARYING(max), "hidden_at" timestamp without time zone, "daisy_chain_id" bigint, "new_member_daisy_chain_id" bigint, "forum_enabled" boolean, "reviewer_id" integer, "event_type_id" integer, "region_id" bigint, "settings" CHARACTER VARYING(max), "campaigner_contactable" boolean, "crm_settings" CHARACTER VARYING(max), "created_by_id" bigint, "reviewer_type" CHARACTER VARYING(max), "mentor_id" bigint, "redirect_to" CHARACTER VARYING(max), "web_conference_url" CHARACTER VARYING(max), "virtual" boolean, "content_updated_at" timestamp without time zone, "external_ids" CHARACTER VARYING(max), "featured" boolean, "theme_id" bigint, "utm_params" CHARACTER VARYING(max), "location_venue" CHARACTER VARYING(max), "unconfirmed_location" boolean, "staff_led_organiser_type" CHARACTER VARYING(max), "staff_led_organiser_id" bigint, "unlisted_at" timestamp(6) without time zone, "send_prompt_to_repeat" boolean, "prompt_to_repeat_sent_at" timestamp(6) without time zone, "predecessor_event_id" bigint, "thank_attendee_email_subject" CHARACTER VARYING(max), "approaching_event_attendee_email_subject" CHARACTER VARYING(max), "promoted_from_waitlist_email_subject" CHARACTER VARYING(max), "attendee_confirmation_email_subject" CHARACTER VARYING(max), "attendee_confirmation_email_content" CHARACTER VARYING(max), "event_sequence_id" bigint, "overridden_fields" CHARACTER VARYING(max), "user_ip" CHARACTER VARYING(max), "user_agent" CHARACTER VARYING(max));
DROP TABLE IF EXISTS export_download_logs;
CREATE TABLE export_download_logs ("id" bigint, "user_id" bigint, "data_export_id" bigint, "created_at" timestamp without time zone);
DROP TABLE IF EXISTS external_events;
Expand Down Expand Up @@ -105,7 +105,7 @@ CREATE TABLE signatures ("petition_id" integer, "email" CHARACTER VARYING(max),
DROP TABLE IF EXISTS sms_opt_in_types;
CREATE TABLE sms_opt_in_types ("id" bigint, "organisation_id" bigint, "context" CHARACTER VARYING(max), "kind" CHARACTER VARYING(max), "active" boolean, "content_settings" CHARACTER VARYING(max), "created_at" timestamp without time zone, "updated_at" timestamp without time zone, "phone_number_required" boolean, "phone_number_requirement_set_from_org" boolean);
DROP TABLE IF EXISTS stories;
CREATE TABLE stories ("id" integer, "title" CHARACTER VARYING(max), "content" CHARACTER VARYING(max), "featured" boolean, "created_at" timestamp without time zone, "updated_at" timestamp without time zone, "image_file_name" CHARACTER VARYING(max), "image_content_type" CHARACTER VARYING(max), "image_file_size" integer, "image_updated_at" timestamp without time zone, "organisation_id" integer, "link" CHARACTER VARYING(max));
CREATE TABLE stories ("id" integer, "title" CHARACTER VARYING(max), "content" CHARACTER VARYING(max), "featured" boolean, "created_at" timestamp without time zone, "updated_at" timestamp without time zone, "organisation_id" integer, "link" CHARACTER VARYING(max));
DROP TABLE IF EXISTS target_collections;
CREATE TABLE target_collections ("id" integer, "name" CHARACTER VARYING(max), "organisation_id" integer, "created_at" timestamp without time zone, "updated_at" timestamp without time zone, "geographic_collection_id" integer, "target_name_format" CHARACTER VARYING(max));
DROP TABLE IF EXISTS target_notifications;
Expand Down
20 changes: 2 additions & 18 deletions source/includes/authenticated_api/_partnerships.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,7 @@ Partnerships are other organisations you collaborate with using the platform.
"created_at": "2015-12-02T01:43:17Z",
"updated_at": "2015-12-02T01:43:17Z",
"url": "https://demo.controlshiftlabs.com/partnerships/fight-fascism",
"image": {
"urls": {
"open_graph": "http://cdn.example.com/partnerships/images/25/open_graph/a-little-teapot.png?1516647704",
"horizontal": "http://cdn.example.com/partnerships/images/25/horizontal/a-little-teapot.png?1516647704",
"hero": "http://cdn.example.com/partnerships/images/25/hero/a-little-teapot.png?1516647704",
"original": "http://cdn.example.com/partnerships/images/25/original/a-little-teapot.png?1516647704",
"form": "http://cdn.example.com/partnerships/images/25/form/a-little-teapot.png?1516647704"
}
}
"image": "https://cdn.example.com/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6ODI2Mzg5LCJ--f17a/OiJ2YXJpYXRpb24ifX0=--924a23c065f/a-little-teapot.png"
},
{
"id": 107,
Expand Down Expand Up @@ -71,15 +63,7 @@ Get a paginated list of all partnerships.
"created_at": "2015-12-02T01:43:17Z",
"updated_at": "2015-12-02T01:43:17Z",
"url": "https://demo.controlshiftlabs.com/partnerships/fight-fascism",
"image": {
"urls": {
"open_graph": "http://cdn.example.com/partnerships/images/25/open_graph/a-little-teapot.png?1516647704",
"horizontal": "http://cdn.example.com/partnerships/images/25/horizontal/a-little-teapot.png?1516647704",
"hero": "http://cdn.example.com/partnerships/images/25/hero/a-little-teapot.png?1516647704",
"original": "http://cdn.example.com/partnerships/images/25/original/a-little-teapot.png?1516647704",
"form": "http://cdn.example.com/partnerships/images/25/form/a-little-teapot.png?1516647704"
}
}
"image": "https://cdn.example.com/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6ODI2Mzg5LCJ--f17a/OiJ2YXJpYXRpb24ifX0=--924a23c065f/a-little-teapot.png"
}
}
```
Expand Down
Loading