The Primary Key

Every row must have a primary key. By default, it will use id. But if you have something other than that such as uuid then you can use the $primaryKey property.

1public string $primaryKey = 'uuid';

See also, troubleshooting.