DROP TABLE IF EXISTS `satellite`;
CREATE TABLE `satellite`
(
    `norad`       varchar(5) NOT NULL,
    `cn_name`     varchar(50),
    `en_name`     varchar(50),
    `base`        varchar(500),
    `element`     varchar(500),
    `create_time` datetime DEFAULT NULL COMMENT '创建时间',
    primary key (norad)
)ENGINE=InnoDB CHARSET=utf8mb3;
DROP TABLE IF EXISTS `satellite_work`;
-- 射频/解调参数 todo
create table satellite_work
(
    `norad`       varchar(5) NOT NULL,
    `config_id`   int        NOT NULL,
    `remark`      varchar(50),
    `config_name` varchar(50),
    `params`      varchar(500),
    `create_time` datetime DEFAULT NULL COMMENT '创建时间',
    primary key (norad, config_id),
    CONSTRAINT `satellite_work_ibfk_1` FOREIGN KEY (`norad`) REFERENCES `satellite` (`norad`) ON DELETE CASCADE
)ENGINE=InnoDB CHARSET=utf8mb3;