diff --git a/AGENTS.md b/AGENTS.md index 871a44a..9beef67 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -205,6 +205,9 @@ Operational notes - Payment provider migrated: PayU removed; Razorpay now used for settings, QR, payment links, and webhooks. - Server access: SSH host alias `hotel` is available for server operations (e.g., `ssh hotel`). Use carefully; DB changes were done via `sudo -u postgres psql` on the server when needed. - Schema changes: schema fix classes have been removed. If a new column/table is required, apply it manually on the server using `ssh hotel` and `sudo -u postgres psql -d trisolaris`, e.g. `alter table ... add column ...`. Keep a note of the exact SQL applied. +- For room-stay lifecycle rollout, run these on server via SSH: + - `ssh hotel "sudo -u postgres psql -d trisolaris -c \"alter table room_stay add column if not exists is_voided boolean not null default false;\""` + - `ssh hotel "sudo -u postgres psql -d trisolaris -c \"create table if not exists room_stay_audit_log ( id uuid primary key, property_id uuid not null, booking_id uuid not null, room_stay_id uuid not null, action text not null, old_to_at timestamptz, new_to_at timestamptz, old_is_voided boolean not null, new_is_voided boolean not null, reason text, actor_user_id uuid, created_at timestamptz not null );\""` Access / ops notes (prod) - Service: `TrisolarisServer.service` (systemd). `systemctl cat TrisolarisServer.service`.