token refresh
This commit is contained in:
parent
55caf69bf0
commit
03e0f90279
4 changed files with 40 additions and 9 deletions
|
@ -3,12 +3,12 @@ import { user } from "./user";
|
|||
|
||||
@Entity()
|
||||
export class refresh {
|
||||
@PrimaryColumn({ generated: "increment", type: "int" })
|
||||
id: number;
|
||||
|
||||
@Column({ type: "varchar", length: 255 })
|
||||
@PrimaryColumn({ type: "varchar", length: 255 })
|
||||
token: string;
|
||||
|
||||
@PrimaryColumn({ type: "int" })
|
||||
userId: number;
|
||||
|
||||
@Column({ type: "datetime" })
|
||||
expiry: Date;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue