From 526c6eede918cabc70bc5ecc77d8d0b02f0808c3 Mon Sep 17 00:00:00 2001 From: Gabriel Grubba Date: Thu, 24 Oct 2024 16:49:01 -0300 Subject: [PATCH] DEV: Update plugin annotations --- app/models/discourse_data_explorer/query.rb | 15 +++++++++++++++ app/models/discourse_data_explorer/query_group.rb | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/app/models/discourse_data_explorer/query.rb b/app/models/discourse_data_explorer/query.rb index c3316bcb..bf23fb9a 100644 --- a/app/models/discourse_data_explorer/query.rb +++ b/app/models/discourse_data_explorer/query.rb @@ -62,3 +62,18 @@ def find(id) 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 88b59ec2..b261f144 100644 --- a/app/models/discourse_data_explorer/query_group.rb +++ b/app/models/discourse_data_explorer/query_group.rb @@ -10,3 +10,18 @@ class QueryGroup < ActiveRecord::Base 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 +#