Welcome to mirror list, hosted at ThFree Co, Russian Federation.

abuse_report_event.rb « resource_events « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2cddfc393e3dee61b4f7dcfeebdc5612c71a1a78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# frozen_string_literal: true

module ResourceEvents
  class AbuseReportEvent < ApplicationRecord
    belongs_to :abuse_report, optional: false
    belongs_to :user

    validates :action, presence: true

    enum action: {
      ban_user: 1,
      block_user: 2,
      delete_user: 3,
      close_report: 4,
      ban_user_and_close_report: 5,
      block_user_and_close_report: 6,
      delete_user_and_close_report: 7
    }

    enum reason: {
      spam: 1,
      offensive: 2,
      phishing: 3,
      crypto: 4,
      credentials: 5,
      copyright: 6,
      malware: 7,
      other: 8,
      unconfirmed: 9
    }
  end
end