refresh token
This commit is contained in:
@@ -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,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 {
|
||||
|
||||
Reference in New Issue
Block a user