gitdataai/lib/migrate/sql/room/room_mention_up_01.sql
2026-05-30 01:38:40 +08:00

9 lines
259 B
SQL

CREATE TABLE IF NOT EXISTS room_mention (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
message UUID NOT NULL,
seq BIGINT NOT NULL,
mention_type TEXT NOT NULL,
target_id UUID NOT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT now()
);