A GaussDB(for MySQL) database table consists of basic information, fields or columns, virtual columns, indexes, and foreign keys, among which virtual columns, indexes, and foreign keys are optional. Configure these items as required.
When you create a foreign key, the type of columns in the referenced table must be the same as that of included columns, and must be the primary key or have a unique index.