@@ -6,15 +6,14 @@ import "github.com/authorizerdev/authorizer/server/graph/model"
66
77// WebhookLog model for db
88type WebhookLog struct {
9- Key string `json:"_key,omitempty" bson:"_key,omitempty" cql:"_key,omitempty"` // for arangodb
10- ID string `gorm:"primaryKey;type:char(36)" json:"_id" bson:"_id" cql:"id"`
11- HttpStatus int64 `json:"http_status" bson:"http_status" cql:"http_status"`
12- Response string `gorm:"type:text" json:"response" bson:"response" cql:"response"`
13- Request string `gorm:"type:text" json:"request" bson:"request" cql:"request"`
14- WebhookID string `gorm:"type:char(36),index:" json:"webhook_id" bson:"webhook_id" cql:"webhook_id"`
15- Webhook Webhook `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;" json:"-" bson:"-" cql:"-"`
16- CreatedAt int64 `json:"created_at" bson:"created_at" cql:"created_at"`
17- UpdatedAt int64 `json:"updated_at" bson:"updated_at" cql:"updated_at"`
9+ Key string `json:"_key,omitempty" bson:"_key,omitempty" cql:"_key,omitempty"` // for arangodb
10+ ID string `gorm:"primaryKey;type:char(36)" json:"_id" bson:"_id" cql:"id"`
11+ HttpStatus int64 `json:"http_status" bson:"http_status" cql:"http_status"`
12+ Response string `gorm:"type:text" json:"response" bson:"response" cql:"response"`
13+ Request string `gorm:"type:text" json:"request" bson:"request" cql:"request"`
14+ WebhookID string `gorm:"type:char(36)" json:"webhook_id" bson:"webhook_id" cql:"webhook_id"`
15+ CreatedAt int64 `json:"created_at" bson:"created_at" cql:"created_at"`
16+ UpdatedAt int64 `json:"updated_at" bson:"updated_at" cql:"updated_at"`
1817}
1918
2019func (w * WebhookLog ) AsAPIWebhookLog () * model.WebhookLog {
0 commit comments