Favoritenseite Dynamisch gemacht
This commit is contained in:
@@ -82,6 +82,23 @@ CREATE TABLE IF NOT EXISTS `app_user_locations` (
|
||||
|
||||
-- Daten-Export vom Benutzer nicht ausgewählt
|
||||
|
||||
-- Exportiere Struktur von Tabelle d0467f49.app_user_comets
|
||||
CREATE TABLE IF NOT EXISTS `app_user_comets` (
|
||||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`user_id` bigint(20) unsigned NOT NULL,
|
||||
`comet_id` bigint(20) unsigned NOT NULL,
|
||||
`is_favorite` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uq_app_user_comets_user_comet` (`user_id`,`comet_id`),
|
||||
KEY `idx_app_user_comets_user_id` (`user_id`),
|
||||
KEY `idx_app_user_comets_comet_id` (`comet_id`),
|
||||
CONSTRAINT `fk_app_user_comets_comet_id` FOREIGN KEY (`comet_id`) REFERENCES `comets_mpc` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
CONSTRAINT `fk_app_user_comets_user_id` FOREIGN KEY (`user_id`) REFERENCES `app_users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- Daten-Export vom Benutzer nicht ausgewählt
|
||||
|
||||
-- Exportiere Struktur von Tabelle d0467f49.app_user_minorplanets
|
||||
CREATE TABLE IF NOT EXISTS `app_user_minorplanets` (
|
||||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||
|
||||
Reference in New Issue
Block a user