add: system notification management

This commit is contained in:
2021-10-12 16:14:45 +08:00
parent 37e5e6d547
commit d176508010
16 changed files with 381 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
# == Schema Information
#
# Table name: system_notifications
#
# id :integer not null, primary key
# subject :string(255)
# sub_subject :string(255)
# content :string(255)
# created_at :datetime not null
# updated_at :datetime not null
#
class SystemNotification < ApplicationRecord
has_many :system_notification_histories
has_many :users, through: :system_notification_histories
end