| 3532 | ` |
| 3533 | |
| 3534 | type InsertAuditLogParams struct { |
| 3535 | ID uuid.UUID `db:"id" json:"id"` |
| 3536 | Time time.Time `db:"time" json:"time"` |
| 3537 | UserID uuid.UUID `db:"user_id" json:"user_id"` |
| 3538 | OrganizationID uuid.UUID `db:"organization_id" json:"organization_id"` |
| 3539 | Ip pqtype.Inet `db:"ip" json:"ip"` |
| 3540 | UserAgent sql.NullString `db:"user_agent" json:"user_agent"` |
| 3541 | ResourceType ResourceType `db:"resource_type" json:"resource_type"` |
| 3542 | ResourceID uuid.UUID `db:"resource_id" json:"resource_id"` |
| 3543 | ResourceTarget string `db:"resource_target" json:"resource_target"` |
| 3544 | Action AuditAction `db:"action" json:"action"` |
| 3545 | Diff json.RawMessage `db:"diff" json:"diff"` |
| 3546 | StatusCode int32 `db:"status_code" json:"status_code"` |
| 3547 | AdditionalFields json.RawMessage `db:"additional_fields" json:"additional_fields"` |
| 3548 | RequestID uuid.UUID `db:"request_id" json:"request_id"` |
| 3549 | ResourceIcon string `db:"resource_icon" json:"resource_icon"` |
| 3550 | } |
| 3551 | |
| 3552 | func (q *sqlQuerier) InsertAuditLog(ctx context.Context, arg InsertAuditLogParams) (AuditLog, error) { |
| 3553 | row := q.db.QueryRowContext(ctx, insertAuditLog, |