ALTER TABLE vn.awb ADD propertyNumber INT(11) NULL;

ALTER TABLE vn2008.awb_component_template ADD CONSTRAINT awb_component_template_FK FOREIGN KEY (awb_component_type_id) 
REFERENCES vn2008.awb_component_type(awb_component_type_id) ON DELETE RESTRICT ON UPDATE CASCADE;

ALTER TABLE vn2008.awb_component_template ADD CONSTRAINT awb_component_template_FK_1 FOREIGN KEY (airline_id) 
REFERENCES vn2008.airline(airline_id) ON DELETE RESTRICT ON UPDATE CASCADE;

INSERT INTO vn2008.awb_unit (awb_unit_id,operation)
    VALUES ('PN','LEAST(90, value + propertyNumber *10)');