import {Entity, model, property} from '@loopback/repository'; @model() export class RefreshToken extends Entity { @property({ type: 'string', required: true, }) clientId: string; @property({ type: 'string', required: true, }) userId: string; @property({ type: 'string', required: true, }) username: string; @property({ type: 'string', required: true, }) accessToken: string; @property({ type: 'string', }) externalAuthToken?: string; @property({ type: 'string', }) externalRefreshToken?: string; @property({ type: 'string', }) pubnubToken?: string; @property({ type: 'string', }) tenantId?: string; constructor(data?: Partial) { super(data); } }