© 2026 Hedgehog Software, LLC
serial('id').primaryKey()
mysql> SHOW INDEXES FROM tokens; +--------+------------+--------------------------------------+--------------+---------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+------------+ | Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment | Visible | Expression | +--------+------------+--------------------------------------+--------------+---------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+------------+ | tokens | 0 | PRIMARY | 1 | id | A | 1001 | NULL | NULL | | BTREE | | | YES | NULL | | tokens | 0 | id | 1 | id | A | 1001 | NULL | NULL | | BTREE | | | YES | NULL |