From 66ea40fe3d23607cea739cb9006334c7939b70b4 Mon Sep 17 00:00:00 2001 From: Gabriel Grubba <70247653+Grubba27@users.noreply.github.com> Date: Fri, 25 Oct 2024 05:42:37 -0300 Subject: [PATCH] DEV: Update plugin annotations (#334) --- 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 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 +#