CREATE TABLE learning_categories (
	id TEXT PRIMARY KEY,
	logo TEXT NULL,
	courses_count INT NOT NULL DEFAULT 0
);

create table organization (
	id TEXT PRIMARY KEY,
	external_id TEXT NULL,
	alias TEXT NOT NULL,
	name TEXT NOT NULL,
	site TEXT NOT NULL,
	logo TEXT NOT NULL,
	created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
	updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
	deleted_at DATETIME     NULL
);

CREATE INDEX idx_organization_external_id ON organization (external_id);
