The primary key is a column or set of columns that uniquely identifies each row in a table.
$columns = [
'id' => ColumnBuilder::primaryKey(),
];
| public abstract primaryKey( boolean $primaryKey = true ): Yiisoft\Db\Schema\Column\ColumnInterface | ||
| $primaryKey | boolean | |
public function primaryKey(bool $primaryKey = true): static;
Signup or Login in order to comment.