feat: add Room.checkin_instructions + migration
Private per-room access details (address, gate/door code). Sent to the guest only in the encrypted check-in DM after payment — never in the public listing. m002 adds the column (default ''). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019VUQCfdqiLSsFS2jcGnaFD
This commit is contained in:
parent
733f17600f
commit
df95fd37dc
2 changed files with 14 additions and 0 deletions
|
|
@ -111,3 +111,12 @@ async def m001_initial(db):
|
|||
await db.execute(
|
||||
"CREATE INDEX idx_chatelet_blocks_room ON chatelet.blocks (room_id);"
|
||||
)
|
||||
|
||||
|
||||
async def m002_room_checkin_instructions(db):
|
||||
"""Private per-room access details (address, gate code), sent to the guest
|
||||
only in the encrypted NIP-17 check-in DM after payment — never public."""
|
||||
await db.execute(
|
||||
"ALTER TABLE chatelet.rooms ADD COLUMN checkin_instructions TEXT "
|
||||
"NOT NULL DEFAULT '';"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue