// Code generated by sqlc. DO NOT EDIT. // versions: // sqlc v1.31.1 // source: audit.sql package auditsqlc import ( "context" "net/netip" "github.com/jackc/pgx/v5/pgtype" ) const insertAuditLog = `-- name: InsertAuditLog :exec INSERT INTO audit_logs (user_id, action, target_type, target_id, ip, metadata) VALUES ($1, $2, $3, $4, $5, $6) ` type InsertAuditLogParams struct { UserID pgtype.UUID `json:"user_id"` Action string `json:"action"` TargetType *string `json:"target_type"` TargetID *string `json:"target_id"` Ip *netip.Addr `json:"ip"` Metadata []byte `json:"metadata"` } func (q *Queries) InsertAuditLog(ctx context.Context, arg InsertAuditLogParams) error { _, err := q.db.Exec(ctx, insertAuditLog, arg.UserID, arg.Action, arg.TargetType, arg.TargetID, arg.Ip, arg.Metadata, ) return err }