LocChat/server/entities/refresh_token.entity.ts

12 lines
260 B
TypeScript
Raw Normal View History

2021-11-23 16:04:12 -05:00
import { Entity, PrimaryGeneratedColumn, ManyToOne } from 'typeorm';
import { User } from './user.entity';
@Entity()
export class RefreshToken {
@PrimaryGeneratedColumn()
id: number;
@ManyToOne(() => User, (user) => user.refreshTokens)
user: User;
}