entity bugs

This commit is contained in:
2026-01-14 15:19:18 +03:30
parent 209a4fc723
commit aed4a1b333
12 changed files with 35 additions and 24 deletions
@@ -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()