Skip to content

Commit

Permalink
DEV: Update plugin annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Grubba27 committed Oct 25, 2024
1 parent 71f3e50 commit 17b194e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 22 deletions.
2 changes: 1 addition & 1 deletion app/models/discourse_events/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down
9 changes: 0 additions & 9 deletions app/models/discourse_events/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions app/models/discourse_events/event_connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down
19 changes: 10 additions & 9 deletions app/models/discourse_events/event_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
#
2 changes: 1 addition & 1 deletion app/models/discourse_events/source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down

0 comments on commit 17b194e

Please sign in to comment.