Files
libredesk/internal/business_hours/queries.sql
T
Abhinav Raut 8ee81c2d64 feat: Widget dark mode and chat reply expectation message in chat title.
feat: Add HTTP utility functions for trusted origin checks

feat: Implement typing status broadcasting for live chat clients and agents.

feat: Add support for signed URLs in media manager

fix: Update database migration to handle duplicate visitors with same email address.

feat: Add conversation subscription and typing message models for WebSocket communication

feat: Implement conversation subscription management in WebSocket hub this is used for broadcasting typing indicator.

feat: Revamp widget JavaScript to improve mobile responsiveness and show unread messages if any.
2025-07-17 01:06:54 +05:30

49 lines
851 B
SQL

-- name: get-business-hours
SELECT id,
created_at,
updated_at,
"name",
description,
is_always_open,
hours,
holidays
FROM business_hours
WHERE id = $1;
-- name: get-all-business-hours
SELECT id,
created_at,
updated_at,
"name",
description,
is_always_open,
hours,
holidays
FROM business_hours
ORDER BY updated_at DESC;
-- name: insert-business-hours
INSERT INTO business_hours (
"name",
description,
is_always_open,
hours,
holidays
)
VALUES ($1, $2, $3, $4, $5)
RETURNING *;
-- name: delete-business-hours
DELETE FROM business_hours
WHERE id = $1;
-- name: update-business-hours
UPDATE business_hours
SET "name" = $2,
description = $3,
is_always_open = $4,
hours = $5,
holidays = $6,
updated_at = NOW()
WHERE id = $1
RETURNING *;