various changes
This commit is contained in:
+2
-2
@@ -52,12 +52,12 @@ export class Post extends Model<InferAttributes<Post>, InferCreationAttributes<P
|
||||
declare postTags?:NonAttribute<Tag[]>;
|
||||
|
||||
|
||||
@BelongsToMany(()=>Bucket,{through: {model:'PostBucket'}, throughAssociations: {
|
||||
@BelongsToMany(()=>Bucket,{through: {model:'PostBucket'}, foreignKeyConstraints: false, throughAssociations: {
|
||||
fromSource: 'postBucketBuckets',
|
||||
toSource: 'post',
|
||||
fromTarget: 'postBucketPosts',
|
||||
toTarget: 'PostBucket',
|
||||
}, inverse:{as: 'posts'}, foreignKey: 'postId', otherKey: 'bucketId'})
|
||||
}, inverse:{as: 'posts'}, foreignKey: {name: 'postId', unique: false}, otherKey: 'bucketId', })
|
||||
declare buckets?:NonAttribute<Bucket[]>;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user