| 1 | // Code generated by sqlc. DO NOT EDIT. |
| 2 | // versions: |
| 3 | // sqlc v1.31.1 |
| 4 | |
| 5 | package webhookdb |
| 6 | |
| 7 | import ( |
| 8 | "time" |
| 9 | |
| 10 | "github.com/google/uuid" |
| 11 | ) |
| 12 | |
| 13 | type WebhookDelivery struct { |
| 14 | ID uuid.UUID `json:"id"` |
| 15 | EndpointID uuid.UUID `json:"endpoint_id"` |
| 16 | EventID uuid.UUID `json:"event_id"` |
| 17 | EventType string `json:"event_type"` |
| 18 | Payload []byte `json:"payload"` |
| 19 | State string `json:"state"` |
| 20 | Attempts int32 `json:"attempts"` |
| 21 | NextAttemptAt time.Time `json:"next_attempt_at"` |
| 22 | LastStatus int32 `json:"last_status"` |
| 23 | LastError string `json:"last_error"` |
| 24 | LastResponseMs int32 `json:"last_response_ms"` |
| 25 | CreatedAt time.Time `json:"created_at"` |
| 26 | } |
| 27 | |
| 28 | type WebhookEndpoint struct { |
| 29 | ID uuid.UUID `json:"id"` |
| 30 | UserID uuid.UUID `json:"user_id"` |
| 31 | URL string `json:"url"` |
| 32 | EventTypes []string `json:"event_types"` |
| 33 | Secret string `json:"secret"` |
| 34 | CreatedAt time.Time `json:"created_at"` |
| 35 | } |