From 17b194ede1f85b359304cac8601b9cd093e21a8c Mon Sep 17 00:00:00 2001 From: Gabriel Grubba Date: Fri, 25 Oct 2024 12:01:17 -0300 Subject: [PATCH] DEV: Update plugin annotations --- app/models/discourse_events/connection.rb | 2 +- app/models/discourse_events/event.rb | 9 --------- .../discourse_events/event_connection.rb | 2 -- app/models/discourse_events/event_source.rb | 19 ++++++++++--------- app/models/discourse_events/source.rb | 2 +- 5 files changed, 12 insertions(+), 22 deletions(-) diff --git a/app/models/discourse_events/connection.rb b/app/models/discourse_events/connection.rb index b9f04b33..7e88d50d 100644 --- a/app/models/discourse_events/connection.rb +++ b/app/models/discourse_events/connection.rb @@ -58,7 +58,7 @@ def self.plugins # user_id :bigint # source_id :bigint not null # category_id :bigint -# client :string default("events") +# client :string default("discourse_events") # created_at :datetime not null # updated_at :datetime not null # diff --git a/app/models/discourse_events/event.rb b/app/models/discourse_events/event.rb index 70b1acd2..65802995 100644 --- a/app/models/discourse_events/event.rb +++ b/app/models/discourse_events/event.rb @@ -37,7 +37,6 @@ class Event < ActiveRecord::Base # Table name: discourse_events_events # # id :bigint not null, primary key -# uid :string not null # start_time :datetime not null # end_time :datetime # name :string @@ -47,17 +46,9 @@ class Event < ActiveRecord::Base # url :string # series_id :string # occurrence_id :string -# source_id :bigint -# provider_id :bigint # created_at :datetime not null # updated_at :datetime not null # -# Indexes -# -# discourse_events_event_id_index (uid,provider_id) UNIQUE -# index_discourse_events_events_on_provider_id (provider_id) -# index_discourse_events_events_on_source_id (source_id) -# # Foreign Keys # # fk_rails_... (provider_id => discourse_events_providers.id) diff --git a/app/models/discourse_events/event_connection.rb b/app/models/discourse_events/event_connection.rb index b130db1d..282ec7ba 100644 --- a/app/models/discourse_events/event_connection.rb +++ b/app/models/discourse_events/event_connection.rb @@ -25,12 +25,10 @@ class EventConnection < ActiveRecord::Base # event_id :bigint not null # connection_id :bigint not null # topic_id :bigint -# post_id :bigint # series_id :string # client :string # created_at :datetime not null # updated_at :datetime not null -# external_id :string # # Indexes # diff --git a/app/models/discourse_events/event_source.rb b/app/models/discourse_events/event_source.rb index 8a223b29..e26b193b 100644 --- a/app/models/discourse_events/event_source.rb +++ b/app/models/discourse_events/event_source.rb @@ -11,21 +11,22 @@ class EventSource < ActiveRecord::Base # == Schema Information # -# Table name: discourse_events_event_connections +# Table name: discourse_events_event_sources # -# id :bigint not null, primary key -# event_id :bigint not null -# source_id :bigint not null -# uid :string -# created_at :datetime not null -# updated_at :datetime not null +# id :bigint not null, primary key +# uid :string not null +# source_id :bigint +# event_id :bigint +# created_at :datetime not null +# updated_at :datetime not null # # Indexes # -# discourse_events_event_connections_event (event_id) +# index_discourse_events_event_sources_on_event_id (event_id) +# index_discourse_events_event_sources_on_source_id (source_id) # # Foreign Keys # -# fk_rails_... (connection_id => discourse_events_connections.id) # fk_rails_... (event_id => discourse_events_events.id) +# fk_rails_... (source_id => discourse_events_sources.id) # diff --git a/app/models/discourse_events/source.rb b/app/models/discourse_events/source.rb index a2864aca..53d0d8fc 100644 --- a/app/models/discourse_events/source.rb +++ b/app/models/discourse_events/source.rb @@ -172,7 +172,7 @@ def valid_json?(json) # taxonomy :string # created_at :datetime not null # updated_at :datetime not null -# sync_type :integer +# sync_type :integer default("import") # # Indexes #