Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/api/app/models/canned_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@ class CannedResponse < ApplicationRecord
# title :string(255) not null
# created_at :datetime not null
# updated_at :datetime not null
# project_id :integer indexed
# package_id :integer indexed
# project_id :integer indexed
# user_id :integer not null, indexed
#
# Indexes
#
# index_canned_responses_on_project_id (project_id)
# index_canned_responses_on_package_id (package_id)
# index_canned_responses_on_project_id (project_id)
# index_canned_responses_on_user_id (user_id)
#
# Foreign Keys
#
# fk_rails_... (project_id => projects.id) ON DELETE => nullify
# fk_rails_... (package_id => packages.id) ON DELETE => nullify
# fk_rails_... (project_id => projects.id) ON DELETE => nullify
# fk_rails_... (user_id => users.id)
#
19 changes: 19 additions & 0 deletions src/api/app/models/event/global_role_assigned.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,22 @@ def subject
end
end
end

# == Schema Information
#
# Table name: events
#
# id :bigint not null, primary key
# eventtype :string(255) not null, indexed
# mails_sent :boolean default(FALSE), indexed
# payload :text(16777215)
# undone_jobs :integer default(0)
# created_at :datetime indexed
# updated_at :datetime
#
# Indexes
#
# index_events_on_created_at (created_at)
# index_events_on_eventtype (eventtype)
# index_events_on_mails_sent (mails_sent)
#
35 changes: 35 additions & 0 deletions src/api/app/models/notification_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,38 @@ def link_path
Rails.application.routes.url_helpers.user_path(event_payload['user'], notification_id: id)
end
end

# == Schema Information
#
# Table name: notifications
#
# id :bigint not null, primary key
# bs_request_oldstate :string(255)
# bs_request_state :string(255)
# delivered :boolean default(FALSE), indexed
# event_payload :text(16777215) not null
# event_type :string(255) not null, indexed
# last_seen_at :datetime
# notifiable_type :string(255) indexed => [notifiable_id]
# rss :boolean default(FALSE), indexed
# subscriber_type :string(255) indexed => [subscriber_id]
# subscription_receiver_role :string(255) not null
# title :string(255)
# type :string(255) indexed
# web :boolean default(FALSE), indexed
# created_at :datetime not null, indexed
# updated_at :datetime not null
# notifiable_id :integer indexed => [notifiable_type]
# subscriber_id :integer indexed => [subscriber_type]
#
# Indexes
#
# index_notifications_on_created_at (created_at)
# index_notifications_on_delivered (delivered)
# index_notifications_on_event_type (event_type)
# index_notifications_on_notifiable_type_and_notifiable_id (notifiable_type,notifiable_id)
# index_notifications_on_rss (rss)
# index_notifications_on_subscriber_type_and_subscriber_id (subscriber_type,subscriber_id)
# index_notifications_on_type (type)
# index_notifications_on_web (web)
#
4 changes: 2 additions & 2 deletions src/api/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,9 @@
t.datetime "updated_at", null: false
t.integer "decision_type"
t.integer "project_id"
t.index ["project_id"], name: "index_canned_responses_on_project_id"
t.integer "package_id"
t.index ["package_id"], name: "index_canned_responses_on_package_id"
t.index ["project_id"], name: "index_canned_responses_on_project_id"
t.index ["user_id"], name: "index_canned_responses_on_user_id"
end

Expand Down Expand Up @@ -1334,8 +1334,8 @@
add_foreign_key "blocked_users", "users", column: "blocker_id"
add_foreign_key "bs_request_action_accept_infos", "bs_request_actions", name: "bs_request_action_accept_infos_ibfk_1"
add_foreign_key "bs_request_actions", "bs_requests", name: "bs_request_actions_ibfk_1"
add_foreign_key "canned_responses", "projects", on_delete: :nullify
add_foreign_key "canned_responses", "packages", on_delete: :nullify
add_foreign_key "canned_responses", "projects", on_delete: :nullify
add_foreign_key "canned_responses", "users"
add_foreign_key "channel_binaries", "architectures", name: "channel_binaries_ibfk_4"
add_foreign_key "channel_binaries", "channel_binary_lists", name: "channel_binaries_ibfk_1"
Expand Down