addPrimaryStr method
Implementation
Create addPrimaryStr(String name,
{int length = 20,
String? foreignTable,
String? foreignCol,
String? uniqueGroup}) {
Foreign? foreign;
if (foreignTable != null) {
foreign = Foreign(foreignTable, foreignCol != null ? foreignCol : name);
}
_columns[name] = CreateStr.primary(name,
length: length, foreignKey: foreign, uniqueGroup: uniqueGroup);
return this;
}