This commit is contained in:
syuilo 2019-04-16 01:11:20 +09:00
parent 815ab4c310
commit c44543bd3e

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, {