CREATE TABLE ast_catalog_type_t
(
    id INT PRIMARY KEY AUTO_INCREMENT,
    nm VARCHAR(16) NOT NULL
);

INSERT INTO ast_catalog_type_t (nm)
VALUES ('*');
INSERT INTO ast_catalog_type_t (nm)
VALUES ('**');
INSERT INTO ast_catalog_type_t (nm)
VALUES ('*Ass');
INSERT INTO ast_catalog_type_t (nm)
VALUES ('Cl+N');
INSERT INTO ast_catalog_type_t (nm)
VALUES ('Dup');
INSERT INTO ast_catalog_type_t (nm)
VALUES ('EmN');
INSERT INTO ast_catalog_type_t (nm)
VALUES ('G');
INSERT INTO ast_catalog_type_t (nm)
VALUES ('GCl');
INSERT INTO ast_catalog_type_t (nm)
VALUES ('GGroup');
INSERT INTO ast_catalog_type_t (nm)
VALUES ('GPair');
INSERT INTO ast_catalog_type_t (nm)
VALUES ('GTrpl');
INSERT INTO ast_catalog_type_t (nm)
VALUES ('HII');
INSERT INTO ast_catalog_type_t (nm)
VALUES ('Neb');
INSERT INTO ast_catalog_type_t (nm)
VALUES ('Nova');
INSERT INTO ast_catalog_type_t (nm)
VALUES ('OCl');
INSERT INTO ast_catalog_type_t (nm)
VALUES ('PN');
INSERT INTO ast_catalog_type_t (nm)
VALUES ('RfN');
INSERT INTO ast_catalog_type_t (nm)
VALUES ('SNR');
INSERT INTO ast_catalog_type_t (nm)
VALUES ('Other');

ALTER TABLE ast_catalog_t
    ADD COLUMN (catalog_type_id INT, FOREIGN KEY (catalog_type_id) REFERENCES ast_catalog_type_t (id));
