apskel-pos-backend/migrations/000060_add_metadata_to_otp_sessions.up.sql

7 lines
242 B
MySQL
Raw Normal View History

2025-09-18 12:01:20 +07:00
-- Add metadata field to otp_sessions table
ALTER TABLE otp_sessions
ADD COLUMN metadata JSONB DEFAULT '{}';
-- Add comment for the new column
COMMENT ON COLUMN otp_sessions.metadata IS 'Additional data stored as JSON for the OTP session';