mirror of
https://github.com/openvk/openvk
synced 2025-01-11 02:19:39 +03:00
1b71a3ad25
This is similar to the links that are in the original VK, but unlike the original, links can be not only the group but also the page (Linktree moment).
15 lines
575 B
SQL
15 lines
575 B
SQL
CREATE TABLE IF NOT EXISTS `links` (
|
|
`id` bigint(20) unsigned NOT NULL,
|
|
`owner` bigint(20) NOT NULL,
|
|
`title` varchar(128) COLLATE utf8mb4_unicode_520_ci NOT NULL,
|
|
`description` varchar(128) COLLATE utf8mb4_unicode_520_ci,
|
|
`url` varchar(128) COLLATE utf8mb4_unicode_520_ci NOT NULL,
|
|
`icon_hash` char(128) COLLATE utf8mb4_unicode_520_ci
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
|
|
|
|
ALTER TABLE `links`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `owner` (`owner`);
|
|
|
|
ALTER TABLE `links`
|
|
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
|