CREATE TABLE IF NOT EXISTS http_access (
	id INTEGER NOT NULL, 
	created TEXT, 
	path TEXT, 
	duration FLOAT, 
	PRIMARY KEY (id)
);
CREATE TABLE IF NOT EXISTS user (
	id INTEGER NOT NULL, 
	color TEXT, 
	created_at TEXT, 
	deleted_at TEXT, 
	email TEXT, 
	is_admin TEXT, 
	last_ping TEXT, 
	nick TEXT, 
	password TEXT, 
	uid TEXT, 
	updated_at TEXT, 
	username TEXT, 
	PRIMARY KEY (id)
);
CREATE INDEX IF NOT EXISTS ix_user_e2577dd78b54fe28 ON user (uid);
CREATE TABLE IF NOT EXISTS channel (
	id INTEGER NOT NULL, 
	created_at TEXT, 
	created_by_uid TEXT, 
	deleted_at TEXT, 
	description TEXT, 
	"index" BIGINT, 
	is_listed BOOLEAN, 
	is_private BOOLEAN, 
	label TEXT, 
	last_message_on TEXT, 
	tag TEXT, 
	uid TEXT, 
	updated_at TEXT, 
	PRIMARY KEY (id)
);
CREATE INDEX IF NOT EXISTS ix_channel_e2577dd78b54fe28 ON channel (uid);
CREATE TABLE IF NOT EXISTS channel_member (
	id INTEGER NOT NULL, 
	channel_uid TEXT, 
	created_at TEXT, 
	deleted_at TEXT, 
	is_banned BOOLEAN, 
	is_moderator BOOLEAN, 
	is_muted BOOLEAN, 
	is_read_only BOOLEAN, 
	label TEXT, 
	new_count BIGINT, 
	uid TEXT, 
	updated_at TEXT, 
	user_uid TEXT, 
	PRIMARY KEY (id)
);
CREATE INDEX IF NOT EXISTS ix_channel_member_e2577dd78b54fe28 ON channel_member (uid);
CREATE TABLE IF NOT EXISTS broadcast (
	id INTEGER NOT NULL, 
	channel_uid TEXT, 
	message TEXT, 
	created_at TEXT, 
	PRIMARY KEY (id)
);
CREATE TABLE IF NOT EXISTS channel_message (
	id INTEGER NOT NULL, 
	channel_uid TEXT, 
	created_at TEXT, 
	deleted_at TEXT, 
	html TEXT, 
	message TEXT, 
	uid TEXT, 
	updated_at TEXT, 
	user_uid TEXT, 
	PRIMARY KEY (id)
);
CREATE INDEX IF NOT EXISTS ix_channel_message_e2577dd78b54fe28 ON channel_message (uid);
CREATE TABLE IF NOT EXISTS notification (
	id INTEGER NOT NULL, 
	created_at TEXT, 
	deleted_at TEXT, 
	message TEXT, 
	object_type TEXT, 
	object_uid TEXT, 
	read_at TEXT, 
	uid TEXT, 
	updated_at TEXT, 
	user_uid TEXT, 
	PRIMARY KEY (id)
);
CREATE INDEX IF NOT EXISTS ix_notification_e2577dd78b54fe28 ON notification (uid);
CREATE TABLE IF NOT EXISTS repository (
	id INTEGER NOT NULL, 
	created_at TEXT, 
	deleted_at TEXT, 
	is_private BIGINT, 
	name TEXT, 
	uid TEXT, 
	updated_at TEXT, 
	user_uid TEXT, 
	PRIMARY KEY (id)
);
CREATE INDEX IF NOT EXISTS ix_repository_e2577dd78b54fe28 ON repository (uid);
