entity bugs
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { Entity, Enum, Index, Property } from '@mikro-orm/core';
|
||||
import { Entity, Enum, Index, PrimaryKey, Property } from '@mikro-orm/core';
|
||||
import { RefreshTokenType } from '../interfaces/IToken-payload';
|
||||
|
||||
@Entity({ tableName: 'refreshtokens' })
|
||||
@Index({ properties: ['hashedToken'] })
|
||||
export class RefreshToken {
|
||||
|
||||
@Property({ type: 'varchar', length: 255 })
|
||||
export class RefreshToken {
|
||||
|
||||
@PrimaryKey({ type: 'varchar', length: 255 })
|
||||
hashedToken!: string;
|
||||
|
||||
@Property()
|
||||
|
||||
Reference in New Issue
Block a user