refresh token

This commit is contained in:
2025-11-11 09:50:18 +03:30
parent 4c274c3118
commit e34b93aa83
8 changed files with 51 additions and 7 deletions
@@ -1,8 +1,8 @@
import { Entity, ManyToOne, Opt, Property } from '@mikro-orm/core';
import { User } from './user.entity';
import { BaseEntity } from 'src/common/entities/base.entity';
@Entity()
import { BaseEntity } from '../../../common/entities/base.entity';
@Entity({ tableName: 'refreshtokens' })
export class RefreshToken extends BaseEntity {
@Property({ type: 'varchar', length: 255 })
token!: string;
+1 -1
View File
@@ -1,6 +1,6 @@
import { Entity, Property, OneToMany, Collection } from '@mikro-orm/core';
import { RefreshToken } from './refresh-token.entity';
import { BaseEntity } from 'src/common/entities/base.entity';
import { BaseEntity } from '../../../common/entities/base.entity';
@Entity({ tableName: 'users' })
export class User extends BaseEntity {