diff --git a/app/models/discourse_data_explorer/query.rb b/app/models/discourse_data_explorer/query.rb index c3316bc..bf23fb9 100644 --- a/app/models/discourse_data_explorer/query.rb +++ b/app/models/discourse_data_explorer/query.rb @@ -62,3 +62,18 @@ module ::DiscourseDataExplorer end end end + +# == Schema Information +# +# Table name: data_explorer_queries +# +# id :bigint not null, primary key +# name :string +# description :text +# sql :text default("SELECT 1"), not null +# user_id :integer +# last_run_at :datetime +# hidden :boolean default(FALSE), not null +# created_at :datetime not null +# updated_at :datetime not null +# diff --git a/app/models/discourse_data_explorer/query_group.rb b/app/models/discourse_data_explorer/query_group.rb index 88b59ec..b261f14 100644 --- a/app/models/discourse_data_explorer/query_group.rb +++ b/app/models/discourse_data_explorer/query_group.rb @@ -10,3 +10,18 @@ module ::DiscourseDataExplorer has_many :bookmarks, as: :bookmarkable end end + +# == Schema Information +# +# Table name: data_explorer_query_groups +# +# id :bigint not null, primary key +# query_id :bigint +# group_id :integer +# +# Indexes +# +# index_data_explorer_query_groups_on_group_id (group_id) +# index_data_explorer_query_groups_on_query_id (query_id) +# index_data_explorer_query_groups_on_query_id_and_group_id (query_id,group_id) UNIQUE +#