不要怂,就是干,撸起袖子干!

Commit 0caf84b3 by 杨奕 Committed by Sushant

fix(types): uniqueKey support for BelongsToManyOptions interface (#10751)

1 parent 728707cd
Showing with 5 additions and 0 deletions
......@@ -67,6 +67,11 @@ export interface BelongsToManyOptions extends ManyToManyOptions {
* Should the join model have timestamps
*/
timestamps?: boolean;
/**
* The unique key name to override the autogenerated one when primary key is not present on through model
*/
uniqueKey?: string;
}
export class BelongsToMany<S extends Model = Model, T extends Model = Model> extends Association<S, T> {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!