webhook.go 519 B

1234567891011121314
  1. package models
  2. import "time"
  3. // HookID is a pointer to plugin id and tenant id, using it to identify the webhook plugin
  4. type Webhook struct {
  5. Model
  6. HookID string `json:"hook_id" orm:"index;size:127;column:hook_id"`
  7. TenantID string `json:"tenant_id" orm:"index;size:64;column:tenant_id"`
  8. UserID string `json:"user_id" orm:"index;size:64;column:user_id"`
  9. PluginID string `json:"plugin_id" orm:"index;size:64;column:plugin_id"`
  10. ExpiredAt time.Time `json:"expired_at" orm:"column:expired_at"`
  11. }