adding unique attribute in AssociationForeignKeyOptions

adding the unique attribute in AssociationForeignKeyOptions 
this unique could be boolean or a string for composite unique indexes
This commit is contained in:
Abdallah Gamal
2018-03-31 03:20:13 +02:00
committed by GitHub
parent def3d5d177
commit 6e793449ca
+1 -1
View File
@@ -1200,7 +1200,7 @@ declare namespace sequelize {
* Attribute name for the relation
*/
name?: string;
unique?: boolean | string;
}
/**