I found an issue in go-zero where the error "missing primary key" occurs when trying to generate a model from mysql DDL.
After checking, the root cause seems to be in zeromicro/dll-parser, which only detects primary keys defined using table-level constraints. As a result, the "missing primary key" error appears when the primary key is defined using a column-level constraint.
It would be great to improve the code to also support primary keys defined at the column level.