-- -------------------------------------------------------- -- Host: paulAhnert.de -- Server-Version: 10.11.14-MariaDB-0ubuntu0.24.04.1-log - Ubuntu 24.04 -- Server-Betriebssystem: debian-linux-gnu -- HeidiSQL Version: 12.8.0.6908 -- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- Exportiere Datenbank-Struktur für d0467f49 CREATE DATABASE IF NOT EXISTS `d0467f49` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */; USE `d0467f49`; -- Exportiere Struktur von Tabelle d0467f49.app_users CREATE TABLE IF NOT EXISTS `app_users` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(50) NOT NULL, `email` varchar(190) NOT NULL, `password_hash` varchar(255) NOT NULL, `display_name` varchar(100) DEFAULT NULL, `role` varchar(32) NOT NULL DEFAULT 'user', `is_active` tinyint(1) NOT NULL DEFAULT 0, `last_login_at` datetime DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), PRIMARY KEY (`id`), UNIQUE KEY `uq_app_users_username` (`username`), UNIQUE KEY `uq_app_users_email` (`email`), KEY `idx_app_users_role` (`role`), KEY `idx_app_users_is_active` (`is_active`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Daten-Export vom Benutzer nicht ausgewählt -- Exportiere Struktur von Tabelle d0467f49.app_user_locations CREATE TABLE IF NOT EXISTS `app_user_locations` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `user_id` bigint(20) unsigned NOT NULL, `name` varchar(100) NOT NULL, `latitude` decimal(10,7) NOT NULL, `longitude` decimal(10,7) NOT NULL, `elevation` decimal(8,2) DEFAULT NULL, `timezone` varchar(64) NOT NULL DEFAULT 'Europe/Berlin', `is_default` tinyint(1) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), PRIMARY KEY (`id`), KEY `idx_app_user_locations_user_id` (`user_id`), KEY `idx_app_user_locations_is_default` (`is_default`), CONSTRAINT `fk_app_user_locations_user_id` FOREIGN KEY (`user_id`) REFERENCES `app_users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=7 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, `user_id` bigint(20) unsigned NOT NULL, `minorplanet_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_minorplanets_user_minorplanet` (`user_id`,`minorplanet_id`), KEY `idx_app_user_minorplanets_user_id` (`user_id`), KEY `idx_app_user_minorplanets_minorplanet_id` (`minorplanet_id`), CONSTRAINT `fk_app_user_minorplanets_minorplanet_id` FOREIGN KEY (`minorplanet_id`) REFERENCES `minorplanets_mpc` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_app_user_minorplanets_user_id` FOREIGN KEY (`user_id`) REFERENCES `app_users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Daten-Export vom Benutzer nicht ausgewählt -- Exportiere Struktur von Tabelle d0467f49.app_user_satellites CREATE TABLE IF NOT EXISTS `app_user_satellites` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `user_id` bigint(20) unsigned NOT NULL, `satellite_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_satellites_user_satellite` (`user_id`,`satellite_id`), KEY `idx_app_user_satellites_user_id` (`user_id`), KEY `idx_app_user_satellites_satellite_id` (`satellite_id`), CONSTRAINT `fk_app_user_satellites_satellite_id` FOREIGN KEY (`satellite_id`) REFERENCES `sat_satellites` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_app_user_satellites_user_id` FOREIGN KEY (`user_id`) REFERENCES `app_users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Daten-Export vom Benutzer nicht ausgewählt -- Exportiere Struktur von Tabelle d0467f49.comets_mpc CREATE TABLE IF NOT EXISTS `comets_mpc` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `orbit_type` char(1) NOT NULL COMMENT 'MPC Orbit_type, z.B. C fuer cometary orbit', `provisional_packed_desig` varchar(32) DEFAULT NULL COMMENT 'Gepackte MPC-Bezeichnung, z.B. .53P010', `year_of_perihelion` smallint(6) NOT NULL COMMENT 'Jahr des Periheldurchgangs, kann auch negativ sein', `month_of_perihelion` tinyint(3) unsigned NOT NULL COMMENT 'Monat des Periheldurchgangs', `day_of_perihelion` decimal(8,5) NOT NULL COMMENT 'Tag des Periheldurchgangs inklusive Tagesbruchteil', `perihelion_dist` decimal(12,8) NOT NULL COMMENT 'Periheldistanz q in AE', `eccentricity` decimal(12,8) NOT NULL COMMENT 'Exzentrizitaet e', `arg_perihelion_deg` decimal(10,6) NOT NULL COMMENT 'Argument des Perihels in Grad', `ascending_node_deg` decimal(10,6) NOT NULL COMMENT 'Laenge des aufsteigenden Knotens in Grad', `inclination_deg` decimal(10,6) NOT NULL COMMENT 'Bahnneigung in Grad', `absolute_magnitude_h` decimal(8,3) DEFAULT NULL COMMENT 'H-Magnitude laut MPC', `slope_parameter_g` decimal(8,3) DEFAULT NULL COMMENT 'G-Parameter laut MPC', `designation_and_name` varchar(255) NOT NULL COMMENT 'Lesbare Bezeichnung, z.B. C/-146 P1', `reference_text` varchar(64) DEFAULT NULL COMMENT 'Referenzfeld aus MPC, z.B. 31, 257', `raw_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Originaler JSON-Datensatz fuer Nachvollziehbarkeit' CHECK (json_valid(`raw_json`)), `source_url` varchar(255) DEFAULT NULL COMMENT 'Quelle des letzten Imports', `imported_at` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'Zeitpunkt des letzten Imports', `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), PRIMARY KEY (`id`), UNIQUE KEY `uq_mpc_comets_designation_name` (`designation_and_name`), KEY `idx_mpc_comets_orbit_type` (`orbit_type`), KEY `idx_mpc_comets_perihelion_year_month` (`year_of_perihelion`,`month_of_perihelion`), KEY `idx_mpc_comets_provisional_packed_desig` (`provisional_packed_desig`) ) ENGINE=InnoDB AUTO_INCREMENT=4630 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Kometenelemente vom Minor Planet Center'; -- Daten-Export vom Benutzer nicht ausgewählt -- Exportiere Struktur von Tabelle d0467f49.constellations CREATE TABLE IF NOT EXISTS `constellations` ( `id` varchar(10) NOT NULL, `created_at` timestamp NULL DEFAULT current_timestamp(), `updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Daten-Export vom Benutzer nicht ausgewählt -- Exportiere Struktur von Tabelle d0467f49.constellation_label_positions CREATE TABLE IF NOT EXISTS `constellation_label_positions` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `constellation_id` varchar(10) NOT NULL, `position_index` int(11) NOT NULL, `ra_hours` decimal(8,3) NOT NULL, `dec_degrees` decimal(8,3) NOT NULL, `created_at` timestamp NULL DEFAULT current_timestamp(), PRIMARY KEY (`id`), UNIQUE KEY `uq_constellation_label_position` (`constellation_id`,`position_index`), CONSTRAINT `fk_constellation_label_positions_constellation` FOREIGN KEY (`constellation_id`) REFERENCES `constellations` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Daten-Export vom Benutzer nicht ausgewählt -- Exportiere Struktur von Tabelle d0467f49.constellation_lines CREATE TABLE IF NOT EXISTS `constellation_lines` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `constellation_id` varchar(10) NOT NULL, `line_index` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT current_timestamp(), PRIMARY KEY (`id`), UNIQUE KEY `uq_constellation_line` (`constellation_id`,`line_index`), CONSTRAINT `fk_constellation_lines_constellation` FOREIGN KEY (`constellation_id`) REFERENCES `constellations` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=220 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Daten-Export vom Benutzer nicht ausgewählt -- Exportiere Struktur von Tabelle d0467f49.constellation_line_points CREATE TABLE IF NOT EXISTS `constellation_line_points` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `line_id` bigint(20) unsigned NOT NULL, `point_index` int(11) NOT NULL, `hip_number` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT current_timestamp(), PRIMARY KEY (`id`), UNIQUE KEY `uq_line_point` (`line_id`,`point_index`), KEY `idx_hip_number` (`hip_number`), CONSTRAINT `fk_constellation_line_points_line` FOREIGN KEY (`line_id`) REFERENCES `constellation_lines` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=915 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Daten-Export vom Benutzer nicht ausgewählt -- Exportiere Struktur von Tabelle d0467f49.constellation_names CREATE TABLE IF NOT EXISTS `constellation_names` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `constellation_id` varchar(10) NOT NULL, `german_name` varchar(255) DEFAULT NULL, `native_name` varchar(255) DEFAULT NULL, `byname` varchar(255) DEFAULT NULL, `context_text` varchar(255) DEFAULT NULL, `created_at` timestamp NULL DEFAULT current_timestamp(), `updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), PRIMARY KEY (`id`), UNIQUE KEY `uq_constellation_names_constellation` (`constellation_id`), CONSTRAINT `fk_constellation_names_constellation` FOREIGN KEY (`constellation_id`) REFERENCES `constellations` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=89 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Daten-Export vom Benutzer nicht ausgewählt -- Exportiere Struktur von Tabelle d0467f49.dso_objects CREATE TABLE IF NOT EXISTS `dso_objects` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `catalog_group` varchar(16) DEFAULT NULL, `name` varchar(64) NOT NULL, `messier` varchar(16) DEFAULT NULL, `ngc` varchar(16) DEFAULT NULL, `ic` varchar(16) DEFAULT NULL, `object_type_abrev` varchar(32) DEFAULT NULL, `object_type` varchar(128) DEFAULT NULL, `ra` varchar(32) DEFAULT NULL, `dec` varchar(32) DEFAULT NULL, `ra_deg` double DEFAULT NULL, `dec_deg` double DEFAULT NULL, `constellation` char(3) DEFAULT NULL, `major_axis` double DEFAULT NULL, `minor_axis` double DEFAULT NULL, `position_angle` double DEFAULT NULL, `b_mag` double DEFAULT NULL, `v_mag` double DEFAULT NULL, `j_mag` double DEFAULT NULL, `h_mag` double DEFAULT NULL, `k_mag` double DEFAULT NULL, `surface_brightness` double DEFAULT NULL, `hubble_type` varchar(64) DEFAULT NULL, `cstar_u_mag` double DEFAULT NULL, `cstar_b_mag` double DEFAULT NULL, `cstar_v_mag` double DEFAULT NULL, `cstar_names` text DEFAULT NULL, `identifiers` longtext DEFAULT NULL, `common_names` longtext DEFAULT NULL, `ned_notes` longtext DEFAULT NULL, `openngc_notes` longtext DEFAULT NULL, `image` varchar(255) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), PRIMARY KEY (`id`), UNIQUE KEY `uq_dso_objects_name` (`name`), KEY `idx_dso_objects_catalog_group` (`catalog_group`), KEY `idx_dso_objects_messier` (`messier`), KEY `idx_dso_objects_ngc` (`ngc`), KEY `idx_dso_objects_ic` (`ic`), KEY `idx_dso_objects_type_abrev` (`object_type_abrev`), KEY `idx_dso_objects_constellation` (`constellation`), KEY `idx_dso_objects_v_mag` (`v_mag`) ) ENGINE=InnoDB AUTO_INCREMENT=13959 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Daten-Export vom Benutzer nicht ausgewählt -- Exportiere Struktur von Tabelle d0467f49.meteoshowers CREATE TABLE IF NOT EXISTS `meteoshowers` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `shower_code` varchar(16) NOT NULL, `designation` varchar(255) NOT NULL, `iau_no` int(10) unsigned DEFAULT NULL, `speed` double DEFAULT NULL, `radiant_alpha` double DEFAULT NULL, `radiant_delta` double DEFAULT NULL, `drift_alpha` double DEFAULT NULL, `drift_delta` double DEFAULT NULL, `parent_obj` varchar(255) DEFAULT NULL, `pidx` double DEFAULT NULL, `activity_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`activity_json`)), `source_entry_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`source_entry_json`)), `source_dataset_name` varchar(128) DEFAULT NULL, `source_dataset_version` int(10) unsigned DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), PRIMARY KEY (`id`), UNIQUE KEY `uq_meteoshowers_shower_code` (`shower_code`), UNIQUE KEY `uq_meteoshowers_iau_no` (`iau_no`), KEY `idx_meteoshowers_designation` (`designation`), KEY `idx_meteoshowers_parent_obj` (`parent_obj`), KEY `idx_meteoshowers_speed` (`speed`), KEY `idx_meteoshowers_pidx` (`pidx`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Daten-Export vom Benutzer nicht ausgewählt -- Exportiere Struktur von Tabelle d0467f49.geo_places CREATE TABLE IF NOT EXISTS `geo_places` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `place_name` varchar(200) NOT NULL, `latitude` decimal(9,6) NOT NULL, `longitude` decimal(9,6) NOT NULL, `elevation_m` int(11) DEFAULT NULL, `country_code` char(2) DEFAULT NULL, `admin1_name` varchar(100) DEFAULT NULL, `source` varchar(50) DEFAULT NULL, `source_id` varchar(100) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), PRIMARY KEY (`id`), KEY `idx_place_name` (`place_name`), KEY `idx_country_code` (`country_code`), KEY `idx_lat_lon` (`latitude`,`longitude`) ) ENGINE=InnoDB AUTO_INCREMENT=167244 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Daten-Export vom Benutzer nicht ausgewählt -- Exportiere Struktur von Tabelle d0467f49.geo_places_observatories CREATE TABLE IF NOT EXISTS `geo_places_observatories` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `observatory_code` varchar(20) NOT NULL, `place_name` varchar(200) NOT NULL, `latitude` decimal(9,6) NOT NULL, `longitude` decimal(9,6) NOT NULL, `elevation_m` int(11) DEFAULT NULL, `source` varchar(50) DEFAULT NULL, `source_id` varchar(100) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), PRIMARY KEY (`id`), UNIQUE KEY `uq_observatory_code` (`observatory_code`), KEY `idx_place_name` (`place_name`), KEY `idx_lat_lon` (`latitude`,`longitude`), KEY `idx_source_id` (`source`,`source_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2663 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Daten-Export vom Benutzer nicht ausgewählt -- Exportiere Struktur von Tabelle d0467f49.geo_places_special CREATE TABLE IF NOT EXISTS `geo_places_special` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `place_key` varchar(100) NOT NULL, `place_name` varchar(200) NOT NULL, `latitude` decimal(9,6) NOT NULL, `longitude` decimal(9,6) NOT NULL, `elevation_m` int(11) DEFAULT NULL, `category` varchar(50) DEFAULT NULL, `description` text DEFAULT NULL, `source` varchar(50) DEFAULT NULL, `source_id` varchar(100) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), PRIMARY KEY (`id`), UNIQUE KEY `uq_place_key` (`place_key`), KEY `idx_place_name` (`place_name`), KEY `idx_category` (`category`), KEY `idx_lat_lon` (`latitude`,`longitude`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Daten-Export vom Benutzer nicht ausgewählt -- Exportiere Struktur von Tabelle d0467f49.minorplanets_mpc CREATE TABLE IF NOT EXISTS `minorplanets_mpc` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `desig_packed` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'Spalte Des''n aus MPCORB.DAT, z. B. 00001 oder K07Tf8A', `mp_number` int(10) unsigned DEFAULT NULL COMMENT 'Entpackte laufende Nummer, falls vorhanden', `absolute_magnitude_h` decimal(5,2) DEFAULT NULL COMMENT 'H', `slope_g` decimal(4,2) DEFAULT NULL COMMENT 'G', `epoch_packed` char(5) NOT NULL COMMENT 'Gepacktes Epoch-Feld, z. B. K25BL', `mean_anomaly_deg` decimal(10,5) NOT NULL COMMENT 'M in Grad', `arg_perihelion_deg` decimal(10,5) NOT NULL COMMENT 'Peri. in Grad', `ascending_node_deg` decimal(10,5) NOT NULL COMMENT 'Node in Grad', `inclination_deg` decimal(10,5) NOT NULL COMMENT 'Incl. in Grad', `eccentricity` decimal(12,7) NOT NULL COMMENT 'e', `mean_motion_deg_per_day` decimal(12,8) NOT NULL COMMENT 'n', `semimajor_axis_au` decimal(12,7) NOT NULL COMMENT 'a in AE', `uncertainty_u` varchar(4) DEFAULT NULL COMMENT 'U / U note', `reference_code` varchar(16) DEFAULT NULL COMMENT 'Reference, z. B. MPO964264', `num_observations` int(10) unsigned DEFAULT NULL COMMENT '#Obs', `num_oppositions` smallint(5) unsigned DEFAULT NULL COMMENT '#Opp', `arc_text` varchar(32) DEFAULT NULL COMMENT 'Arc, z. B. 1801-2026', `rms_residual` decimal(6,2) DEFAULT NULL COMMENT 'rms', `perturbers_1` varchar(8) DEFAULT NULL COMMENT 'Perts erste Spalte, z. B. M-v', `perturbers_2` varchar(8) DEFAULT NULL COMMENT 'Perts zweite Spalte, z. B. 30k', `orbit_computer` varchar(16) DEFAULT NULL COMMENT 'Computer, z. B. MPCORBFIT', `hex_flags` varchar(8) DEFAULT NULL COMMENT 'Hex-Flags, z. B. 4000', `designation_text` varchar(128) DEFAULT NULL COMMENT 'Menschenlesbarer Rest, z. B. (1) Ceres', `last_obs_compact` char(8) DEFAULT NULL COMMENT 'Letzte Beobachtung YYYYMMDD', `last_obs_date` date DEFAULT NULL COMMENT 'Letzte Beobachtung als DATE', `raw_record` varchar(255) DEFAULT NULL COMMENT 'Originalzeile aus MPCORB.DAT', `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), PRIMARY KEY (`id`), UNIQUE KEY `uq_minorplanets_mpc_desig_packed` (`desig_packed`), UNIQUE KEY `uq_minorplanets_mpc_mp_number` (`mp_number`), KEY `idx_minorplanets_mpc_reference_code` (`reference_code`), KEY `idx_minorplanets_mpc_designation_text` (`designation_text`), KEY `idx_minorplanets_mpc_last_obs_date` (`last_obs_date`) ) ENGINE=InnoDB AUTO_INCREMENT=1519610 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Rohimport der Bahndaten aus MPCORB.DAT'; -- Daten-Export vom Benutzer nicht ausgewählt -- Exportiere Struktur von Tabelle d0467f49.moon_craters CREATE TABLE IF NOT EXISTS `moon_craters` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `lun` varchar(64) DEFAULT NULL, `name_type` varchar(255) DEFAULT NULL, `iau_type` varchar(100) DEFAULT NULL, `iau_type_de` varchar(100) DEFAULT NULL, `type` varchar(100) DEFAULT NULL, `type_de` varchar(100) DEFAULT NULL, `subtype` varchar(150) DEFAULT NULL, `subtype_de` varchar(150) DEFAULT NULL, `process` varchar(150) DEFAULT NULL, `process_de` varchar(150) DEFAULT NULL, `period` varchar(255) DEFAULT NULL, `period_de` varchar(255) DEFAULT NULL, `period_source` text DEFAULT NULL, `geology` varchar(255) DEFAULT NULL, `geology_de` varchar(255) DEFAULT NULL, `name_detail` varchar(255) DEFAULT NULL, `name_origin` varchar(255) DEFAULT NULL, `iau_approval_date` date DEFAULT NULL, `langrenus` varchar(255) DEFAULT NULL, `hevelius` varchar(255) DEFAULT NULL, `riccioli` varchar(255) DEFAULT NULL, `work` varchar(255) DEFAULT NULL, `country` varchar(255) DEFAULT NULL, `country_de` varchar(255) DEFAULT NULL, `nationality` varchar(255) DEFAULT NULL, `nationality_de` varchar(255) DEFAULT NULL, `century_n` varchar(50) DEFAULT NULL, `century_c` varchar(50) DEFAULT NULL, `birth_place` varchar(255) DEFAULT NULL, `birth_date` varchar(100) DEFAULT NULL, `death_place` varchar(255) DEFAULT NULL, `death_date` varchar(100) DEFAULT NULL, `facts` text DEFAULT NULL, `longi_n` decimal(10,6) DEFAULT NULL, `longi_n_360` decimal(10,6) DEFAULT NULL, `longi_c` varchar(255) DEFAULT NULL, `lati_n` decimal(10,6) DEFAULT NULL, `lati_c` varchar(255) DEFAULT NULL, `face` varchar(100) DEFAULT NULL, `face_de` varchar(100) DEFAULT NULL, `quadrant` varchar(100) DEFAULT NULL, `quadrant_de` varchar(100) DEFAULT NULL, `area` varchar(255) DEFAULT NULL, `length_km` decimal(10,3) DEFAULT NULL, `wide_km` decimal(10,3) DEFAULT NULL, `length_arcsec` decimal(10,3) DEFAULT NULL, `height_m` varchar(255) DEFAULT NULL, `rapport` varchar(255) DEFAULT NULL, `general_1` text DEFAULT NULL, `general_2` text DEFAULT NULL, `slopes` text DEFAULT NULL, `walls` text DEFAULT NULL, `floor` text DEFAULT NULL, `interest_n` int(11) DEFAULT NULL, `interest_c` varchar(255) DEFAULT NULL, `interest_c_de` varchar(255) DEFAULT NULL, `lunation` varchar(100) DEFAULT NULL, `moonday_s` varchar(255) DEFAULT NULL, `moonday_s_de` varchar(255) DEFAULT NULL, `moonday_m` varchar(255) DEFAULT NULL, `moonday_m_de` varchar(255) DEFAULT NULL, `diam_inst` varchar(255) DEFAULT NULL, `diam_inst_de` varchar(255) DEFAULT NULL, `th_instru` varchar(255) DEFAULT NULL, `th_instru_de` varchar(255) DEFAULT NULL, `pr_instru` varchar(255) DEFAULT NULL, `pr_instru_de` varchar(255) DEFAULT NULL, `source_row_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`source_row_json`)), `imported_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), PRIMARY KEY (`id`), UNIQUE KEY `uniq_lun` (`lun`), KEY `idx_name` (`name`), KEY `idx_type` (`type`), KEY `idx_face` (`face`), KEY `idx_quadrant` (`quadrant`), KEY `idx_longi_n_360` (`longi_n_360`), KEY `idx_lati_n` (`lati_n`) ) ENGINE=InnoDB AUTO_INCREMENT=2013 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Daten-Export vom Benutzer nicht ausgewählt -- Exportiere Struktur von Tabelle d0467f49.sat_import_runs CREATE TABLE IF NOT EXISTS `sat_import_runs` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `source` varchar(32) NOT NULL, `started_at` datetime NOT NULL, `finished_at` datetime DEFAULT NULL, `records_received` int(11) NOT NULL DEFAULT 0, `records_inserted` int(11) NOT NULL DEFAULT 0, `records_updated` int(11) NOT NULL DEFAULT 0, `status` varchar(32) NOT NULL, `message` text DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_sat_import_runs_source` (`source`), KEY `idx_sat_import_runs_started_at` (`started_at`) ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Daten-Export vom Benutzer nicht ausgewählt -- Exportiere Struktur von Tabelle d0467f49.sat_pass_predictions CREATE TABLE IF NOT EXISTS `sat_pass_predictions` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `user_id` bigint(20) unsigned NOT NULL, `location_id` bigint(20) unsigned NOT NULL, `satellite_id` bigint(20) unsigned NOT NULL, `tle_id` bigint(20) unsigned DEFAULT NULL, `aos_utc` datetime NOT NULL, `los_utc` datetime NOT NULL, `max_elevation` decimal(5,2) NOT NULL, `aos_azimuth` decimal(6,2) DEFAULT NULL, `los_azimuth` decimal(6,2) DEFAULT NULL, `max_elevation_at_utc` datetime DEFAULT NULL, `is_visible` tinyint(1) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uq_pass_prediction` (`user_id`,`location_id`,`satellite_id`,`aos_utc`), KEY `idx_user_aos` (`user_id`,`aos_utc`), KEY `idx_user_sat_aos` (`user_id`,`satellite_id`,`aos_utc`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- Daten-Export vom Benutzer nicht ausgewählt -- Exportiere Struktur von Tabelle d0467f49.sat_satellites CREATE TABLE IF NOT EXISTS `sat_satellites` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `norad_cat_id` int(10) unsigned NOT NULL, `object_name` varchar(255) DEFAULT NULL, `object_id` varchar(32) DEFAULT NULL, `object_type` varchar(32) DEFAULT NULL, `classification_type` char(1) DEFAULT NULL, `country_code` varchar(16) DEFAULT NULL, `launch_date` date DEFAULT NULL, `decay_date` date DEFAULT NULL, `rcs_size` varchar(32) DEFAULT NULL, `active` tinyint(1) NOT NULL DEFAULT 1, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `std_mag` float DEFAULT NULL COMMENT 'Standard visual magnitude at 1000km range, 50% phase (qs.mag / McCants)', `rcs` float DEFAULT NULL COMMENT 'Radar Cross Section in m² (CelesTrak satcat)', PRIMARY KEY (`id`), UNIQUE KEY `uq_sat_satellites_norad_cat_id` (`norad_cat_id`), KEY `idx_sat_satellites_object_name` (`object_name`), KEY `idx_sat_satellites_object_type` (`object_type`), KEY `idx_sat_satellites_object_id` (`object_id`) ) ENGINE=InnoDB AUTO_INCREMENT=236690 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Daten-Export vom Benutzer nicht ausgewählt -- Exportiere Struktur von Tabelle d0467f49.sat_tle_current CREATE TABLE IF NOT EXISTS `sat_tle_current` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `satellite_id` bigint(20) unsigned NOT NULL, `norad_cat_id` int(10) unsigned NOT NULL, `epoch` datetime DEFAULT NULL, `creation_date` datetime DEFAULT NULL, `mean_motion` double DEFAULT NULL, `eccentricity` double DEFAULT NULL, `inclination` double DEFAULT NULL, `ra_of_asc_node` double DEFAULT NULL, `arg_of_pericenter` double DEFAULT NULL, `mean_anomaly` double DEFAULT NULL, `ephemeris_type` tinyint(4) DEFAULT NULL, `element_set_no` int(11) DEFAULT NULL, `rev_at_epoch` int(11) DEFAULT NULL, `bstar` double DEFAULT NULL, `mean_motion_dot` double DEFAULT NULL, `mean_motion_ddot` double DEFAULT NULL, `center_name` varchar(32) DEFAULT NULL, `ref_frame` varchar(32) DEFAULT NULL, `time_system` varchar(32) DEFAULT NULL, `mean_element_theory` varchar(32) DEFAULT NULL, `raw_json` longtext DEFAULT NULL, `source` varchar(32) NOT NULL DEFAULT 'space-track', `imported_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), PRIMARY KEY (`id`), UNIQUE KEY `uq_sat_tle_current_satellite_id` (`satellite_id`), UNIQUE KEY `uq_sat_tle_current_norad_cat_id` (`norad_cat_id`), KEY `idx_sat_tle_current_epoch` (`epoch`), KEY `idx_sat_tle_current_source` (`source`), CONSTRAINT `fk_sat_tle_current_satellite_id` FOREIGN KEY (`satellite_id`) REFERENCES `sat_satellites` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=236690 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Daten-Export vom Benutzer nicht ausgewählt -- Exportiere Struktur von Tabelle d0467f49.star_hipparcos CREATE TABLE IF NOT EXISTS `star_hipparcos` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `hip` int(10) unsigned DEFAULT NULL, `hd` int(10) unsigned DEFAULT NULL, `hr` int(10) unsigned DEFAULT NULL, `gl` varchar(32) DEFAULT NULL, `bf` varchar(64) DEFAULT NULL, `proper` varchar(128) DEFAULT NULL, `ra` double DEFAULT NULL, `dec` double DEFAULT NULL, `dist` double DEFAULT NULL, `pmra` double DEFAULT NULL, `pmdec` double DEFAULT NULL, `rv` double DEFAULT NULL, `mag` double DEFAULT NULL, `absmag` double DEFAULT NULL, `spect` varchar(32) DEFAULT NULL, `ci` double DEFAULT NULL, `x` double DEFAULT NULL, `y` double DEFAULT NULL, `z` double DEFAULT NULL, `vx` double DEFAULT NULL, `vy` double DEFAULT NULL, `vz` double DEFAULT NULL, `rarad` double DEFAULT NULL, `decrad` double DEFAULT NULL, `pmrarad` double DEFAULT NULL, `pmdecrad` double DEFAULT NULL, `bayer` varchar(32) DEFAULT NULL, `flam` varchar(32) DEFAULT NULL, `con` char(3) DEFAULT NULL, `comp` tinyint(3) unsigned DEFAULT NULL, `comp_primary` tinyint(3) unsigned DEFAULT NULL, `base` varchar(64) DEFAULT NULL, `lum` double DEFAULT NULL, `var` varchar(64) DEFAULT NULL, `var_min` double DEFAULT NULL, `var_max` double DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), PRIMARY KEY (`id`), UNIQUE KEY `uq_star_hipparcos_hip` (`hip`), KEY `idx_star_hipparcos_proper` (`proper`), KEY `idx_star_hipparcos_bf` (`bf`), KEY `idx_star_hipparcos_con` (`con`), KEY `idx_star_hipparcos_mag` (`mag`) ) ENGINE=InnoDB AUTO_INCREMENT=117952 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Daten-Export vom Benutzer nicht ausgewählt /*!40103 SET TIME_ZONE=IFNULL(@OLD_TIME_ZONE, 'system') */; /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */;