Instance Method
unique(_:named:)
Add a
UNIQUE constraint to the table.@discardableResult func unique(_ columns: String..., named constraintName: String? = nil) -> Self
Parameters
columnsOne or more columns to include in the unique constraint.
constraintNameAn optional name to give the constraint.