// Code generated by sqlc. DO NOT EDIT.
// versions:
//   sqlc v1.30.0
// source: agenda_supp.sql

package generated

import (
	"context"

	"github.com/jackc/pgx/v5/pgtype"
)

const resetLogisticsNotificationTimestamp = `-- name: ResetLogisticsNotificationTimestamp :exec
UPDATE agenda
SET logistica_notificacao_enviada_em = NULL
WHERE id = $1
`

func (q *Queries) ResetLogisticsNotificationTimestamp(ctx context.Context, id pgtype.UUID) error {
	_, err := q.db.Exec(ctx, resetLogisticsNotificationTimestamp, id)
	return err
}

const updateLogisticsNotificationTimestamp = `-- name: UpdateLogisticsNotificationTimestamp :exec
UPDATE agenda
SET logistica_notificacao_enviada_em = NOW()
WHERE id = $1
`

func (q *Queries) UpdateLogisticsNotificationTimestamp(ctx context.Context, id pgtype.UUID) error {
	_, err := q.db.Exec(ctx, updateLogisticsNotificationTimestamp, id)
	return err
}
