NobGit
public imalexnord read

Slot

Calendar-first scheduling powered by Cloudflare Workers and Google Calendar.

Languages

Repository composition by tracked source files.

TypeScript
TypeScript 79% CSS 19% SQL 2% HTML 0%
Create file Wiki Documentation
Clone
https://nobgit.com/user/imalexnord/slot.git
ssh://[email protected]:2222/user/imalexnord/slot.git

Trace

migrations/0005_activity.sql

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

0005_activity.sql on main
Author Date Commit Line Code
Alex Nord about 23 hours ago 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
1
CREATE TABLE IF NOT EXISTS activity_events (
Open commit View diff
1 CREATE TABLE IF NOT EXISTS activity_events (
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
2
  id TEXT PRIMARY KEY,
Open commit View diff
2 id TEXT PRIMARY KEY,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
3
  booking_id TEXT,
Open commit View diff
3 booking_id TEXT,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
4
  type TEXT NOT NULL,
Open commit View diff
4 type TEXT NOT NULL,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
5
  occurred_at TEXT NOT NULL DEFAULT (datetime('now')),
Open commit View diff
5 occurred_at TEXT NOT NULL DEFAULT (datetime('now')),
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
6
  metadata TEXT,
Open commit View diff
6 metadata TEXT,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
7
  idempotency_key TEXT
Open commit View diff
7 idempotency_key TEXT
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
8
);
Open commit View diff
8 );
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
9
Open commit View diff
9
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
10
CREATE INDEX IF NOT EXISTS idx_activity_events_occurred_at
Open commit View diff
10 CREATE INDEX IF NOT EXISTS idx_activity_events_occurred_at
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
11
  ON activity_events(occurred_at DESC);
Open commit View diff
11 ON activity_events(occurred_at DESC);
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
12
CREATE INDEX IF NOT EXISTS idx_activity_events_booking_id
Open commit View diff
12 CREATE INDEX IF NOT EXISTS idx_activity_events_booking_id
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
13
  ON activity_events(booking_id);
Open commit View diff
13 ON activity_events(booking_id);
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
14
CREATE UNIQUE INDEX IF NOT EXISTS idx_activity_events_idempotency_key
Open commit View diff
14 CREATE UNIQUE INDEX IF NOT EXISTS idx_activity_events_idempotency_key
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
15
  ON activity_events(idempotency_key)
Open commit View diff
15 ON activity_events(idempotency_key)
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
16
  WHERE idempotency_key IS NOT NULL;
Open commit View diff
16 WHERE idempotency_key IS NOT NULL;
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
17
Open commit View diff
17
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
18
-- Backfill the lifecycle points that can be reconstructed safely from existing
Open commit View diff
18 -- Backfill the lifecycle points that can be reconstructed safely from existing
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
19
-- booking rows. Future changes are recorded as first-class activity events.
Open commit View diff
19 -- booking rows. Future changes are recorded as first-class activity events.
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
20
INSERT OR IGNORE INTO activity_events (id, booking_id, type, occurred_at, metadata, idempotency_key)
Open commit View diff
20 INSERT OR IGNORE INTO activity_events (id, booking_id, type, occurred_at, metadata, idempotency_key)
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
21
SELECT
Open commit View diff
21 SELECT
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
22
  'backfill-confirmed-' || id,
Open commit View diff
22 'backfill-confirmed-' || id,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
23
  id,
Open commit View diff
23 id,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
24
  'booking_confirmed',
Open commit View diff
24 'booking_confirmed',
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
25
  created_at,
Open commit View diff
25 created_at,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
26
  '{"backfilled":true}',
Open commit View diff
26 '{"backfilled":true}',
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
27
  'booking:' || id || ':confirmed'
Open commit View diff
27 'booking:' || id || ':confirmed'
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
28
FROM bookings
Open commit View diff
28 FROM bookings
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
29
WHERE status = 'confirmed'
Open commit View diff
29 WHERE status = 'confirmed'
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
30
   OR (status = 'cancelled' AND (payment_status <> 'cancelled' OR paid_at IS NOT NULL));
Open commit View diff
30 OR (status = 'cancelled' AND (payment_status <> 'cancelled' OR paid_at IS NOT NULL));
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
31
Open commit View diff
31
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
32
INSERT OR IGNORE INTO activity_events (id, booking_id, type, occurred_at, metadata, idempotency_key)
Open commit View diff
32 INSERT OR IGNORE INTO activity_events (id, booking_id, type, occurred_at, metadata, idempotency_key)
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
33
SELECT
Open commit View diff
33 SELECT
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
34
  'backfill-paid-' || id,
Open commit View diff
34 'backfill-paid-' || id,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
35
  id,
Open commit View diff
35 id,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
36
  'payment_received',
Open commit View diff
36 'payment_received',
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
37
  paid_at,
Open commit View diff
37 paid_at,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
38
  '{"backfilled":true}',
Open commit View diff
38 '{"backfilled":true}',
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
39
  'booking:' || id || ':paid'
Open commit View diff
39 'booking:' || id || ':paid'
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
40
FROM bookings
Open commit View diff
40 FROM bookings
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
41
WHERE paid_at IS NOT NULL;
Open commit View diff
41 WHERE paid_at IS NOT NULL;
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
42
Open commit View diff
42
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
43
INSERT OR IGNORE INTO activity_events (id, booking_id, type, occurred_at, metadata, idempotency_key)
Open commit View diff
43 INSERT OR IGNORE INTO activity_events (id, booking_id, type, occurred_at, metadata, idempotency_key)
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
44
SELECT
Open commit View diff
44 SELECT
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
45
  'backfill-rescheduled-' || id,
Open commit View diff
45 'backfill-rescheduled-' || id,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
46
  id,
Open commit View diff
46 id,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
47
  'booking_rescheduled',
Open commit View diff
47 'booking_rescheduled',
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
48
  rescheduled_at,
Open commit View diff
48 rescheduled_at,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
49
  json_object('backfilled', 1, 'count', reschedule_count),
Open commit View diff
49 json_object('backfilled', 1, 'count', reschedule_count),
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
50
  'booking:' || id || ':reschedule-backfill'
Open commit View diff
50 'booking:' || id || ':reschedule-backfill'
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
51
FROM bookings
Open commit View diff
51 FROM bookings
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
52
WHERE rescheduled_at IS NOT NULL AND reschedule_count > 0;
Open commit View diff
52 WHERE rescheduled_at IS NOT NULL AND reschedule_count > 0;
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
53
Open commit View diff
53
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
54
INSERT OR IGNORE INTO activity_events (id, booking_id, type, occurred_at, metadata, idempotency_key)
Open commit View diff
54 INSERT OR IGNORE INTO activity_events (id, booking_id, type, occurred_at, metadata, idempotency_key)
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
55
SELECT
Open commit View diff
55 SELECT
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
56
  'backfill-suggested-' || id,
Open commit View diff
56 'backfill-suggested-' || id,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
57
  id,
Open commit View diff
57 id,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
58
  'time_suggested',
Open commit View diff
58 'time_suggested',
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
59
  proposed_at,
Open commit View diff
59 proposed_at,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
60
  json_object('backfilled', 1, 'proposedStart', proposed_start_time, 'proposedEnd', proposed_end_time),
Open commit View diff
60 json_object('backfilled', 1, 'proposedStart', proposed_start_time, 'proposedEnd', proposed_end_time),
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
61
  'booking:' || id || ':suggestion-backfill'
Open commit View diff
61 'booking:' || id || ':suggestion-backfill'
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
62
FROM bookings
Open commit View diff
62 FROM bookings
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
63
WHERE proposed_at IS NOT NULL;
Open commit View diff
63 WHERE proposed_at IS NOT NULL;
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
64
Open commit View diff
64
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
65
INSERT OR IGNORE INTO activity_events (id, booking_id, type, occurred_at, metadata, idempotency_key)
Open commit View diff
65 INSERT OR IGNORE INTO activity_events (id, booking_id, type, occurred_at, metadata, idempotency_key)
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
66
SELECT
Open commit View diff
66 SELECT
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
67
  'backfill-refunded-' || id,
Open commit View diff
67 'backfill-refunded-' || id,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
68
  id,
Open commit View diff
68 id,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
69
  'refund_succeeded',
Open commit View diff
69 'refund_succeeded',
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
70
  refunded_at,
Open commit View diff
70 refunded_at,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
71
  json_object('backfilled', 1, 'amount', refunded_amount, 'currency', payment_currency),
Open commit View diff
71 json_object('backfilled', 1, 'amount', refunded_amount, 'currency', payment_currency),
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
72
  CASE WHEN stripe_refund_id IS NOT NULL THEN 'refund:' || stripe_refund_id || ':succeeded' ELSE 'booking:' || id || ':refund-backfill' END
Open commit View diff
72 CASE WHEN stripe_refund_id IS NOT NULL THEN 'refund:' || stripe_refund_id || ':succeeded' ELSE 'booking:' || id || ':refund-backfill' END
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
73
FROM bookings
Open commit View diff
73 FROM bookings
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
74
WHERE refunded_at IS NOT NULL;
Open commit View diff
74 WHERE refunded_at IS NOT NULL;
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
75
Open commit View diff
75
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
76
INSERT OR IGNORE INTO activity_events (id, booking_id, type, occurred_at, metadata, idempotency_key)
Open commit View diff
76 INSERT OR IGNORE INTO activity_events (id, booking_id, type, occurred_at, metadata, idempotency_key)
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
77
SELECT
Open commit View diff
77 SELECT
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
78
  'backfill-cancelled-' || id,
Open commit View diff
78 'backfill-cancelled-' || id,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
79
  id,
Open commit View diff
79 id,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
80
  CASE WHEN payment_status = 'cancelled' AND paid_at IS NULL THEN 'payment_hold_released' ELSE 'booking_cancelled' END,
Open commit View diff
80 CASE WHEN payment_status = 'cancelled' AND paid_at IS NULL THEN 'payment_hold_released' ELSE 'booking_cancelled' END,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
81
  cancelled_at,
Open commit View diff
81 cancelled_at,
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
82
  '{"backfilled":true}',
Open commit View diff
82 '{"backfilled":true}',
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
83
  'booking:' || id || ':cancelled'
Open commit View diff
83 'booking:' || id || ':cancelled'
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
84
FROM bookings
Open commit View diff
84 FROM bookings
same change 92deb90

feat: add public booking IDs and self-service cancellation

Full commit hash
92deb90d0872b02f6bac0f855281cdb9a73596db
Author
Alex Nord <[email protected]>
Date
about 23 hours ago
Selected line
85
WHERE cancelled_at IS NOT NULL;
Open commit View diff
85 WHERE cancelled_at IS NOT NULL;