This commit is contained in:
syuilo 2019-04-16 01:11:20 +09:00
parent bce8c5a315
commit 400cdf0f26
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -25,7 +25,8 @@ export class AccessToken {
})
public hash: string;
@RelationId((self: AccessToken) => self.user)
@Index()
@Column(id())
public userId: User['id'];
@ManyToOne(type => User, {