import { belongsTo , Entity , model , property } from '@loopback/repository' ; import { User } from '.' ; @ model ( { settings : { strict : false } } ) export class RefreshToken extends Entity { @ property ( { type : 'number' , id : 1 , generated : true , } ) id : number ; @ belongsTo ( ( ) => User ) userId : string ; @ property ( { type : 'string' , required : true , } ) refreshToken : string ; [ prop ] : any ; constructor ( data ? ) { super ( data ) ; } } export interface RefreshTokenRelations { } export type RefereshTokenWithRelations = RefreshToken & RefreshTokenRelations ;