-- Your SQL goes here
CREATE TABLE `participants`(
	`id` INTEGER NOT NULL PRIMARY KEY,
	`display_name` TEXT NOT NULL
);

CREATE TABLE `conversation_participants`(
	`conversation_id` TEXT NOT NULL,
	`participant_id` INTEGER NOT NULL,
	PRIMARY KEY(`conversation_id`, `participant_id`)
);

CREATE TABLE `conversations`(
	`id` TEXT NOT NULL PRIMARY KEY,
	`unread_count` BIGINT NOT NULL,
	`display_name` TEXT,
	`last_message_preview` TEXT,
	`date` TIMESTAMP NOT NULL
);

