CREATE TABLE "chat_users" (
	"id" varchar PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
	"username" text NOT NULL,
	"device_id" text NOT NULL,
	"created_at" timestamp DEFAULT now() NOT NULL,
	CONSTRAINT "chat_users_username_unique" UNIQUE("username"),
	CONSTRAINT "chat_users_device_id_unique" UNIQUE("device_id")
);
