مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2026-01-17 13:39:46 +00:00
initial commit from appmail
هذا الالتزام موجود في:
34
app/models/webhook_event.rb
Normal file
34
app/models/webhook_event.rb
Normal file
@@ -0,0 +1,34 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: webhook_events
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# webhook_id :integer
|
||||
# event :string(255)
|
||||
# created_at :datetime
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_webhook_events_on_webhook_id (webhook_id)
|
||||
#
|
||||
|
||||
class WebhookEvent < ApplicationRecord
|
||||
|
||||
EVENTS = [
|
||||
'MessageSent',
|
||||
'MessageDelayed',
|
||||
'MessageDeliveryFailed',
|
||||
'MessageHeld',
|
||||
'MessageBounced',
|
||||
'MessageLinkClicked',
|
||||
'MessageLoaded',
|
||||
'DomainDNSError',
|
||||
'SendLimitApproaching',
|
||||
'SendLimitExceeded'
|
||||
]
|
||||
|
||||
belongs_to :webhook
|
||||
|
||||
validates :event, :presence => true
|
||||
|
||||
end
|
||||
المرجع في مشكلة جديدة
حظر مستخدم