i completely forget to add mysql schema. sorry.
CREATE TABLE `sources` (
`id` binary(16) NOT NULL,
`nth` int(11) NOT NULL,
`url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`contents` text COLLATE utf8mb4_unicode_ci,
PRIMARY KEY (`id`),
UNIQUE KEY `sources_nth_index` (`nth`),
UNIQUE KEY `sources_url_index` (`url`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
in my config i also have:
config :stats, Stats.Repo, migration_primary_key: [id: :uuid, type: :binary_id]






















