// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved. // Node module: @loopback/authentication-jwt // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT import {Entity, model, property} from '@loopback/repository'; @model({settings: {strict: false}}) export class UserCredentials extends Entity { @property({ type: 'string', id: true, generated: false, defaultFn: 'uuidv4', }) id: string; @property({ type: 'string', required: true, }) password: string; @property({ type: 'string', required: true, }) userId: string; // Define well-known properties here // Indexer property to allow additional data // eslint-disable-next-line @typescript-eslint/no-explicit-any [prop: string]: any; constructor(data?: Partial) { super(data); } } export interface UserCredentialsRelations { // describe navigational properties here } export type UserCredentialsWithRelations = UserCredentials & UserCredentialsRelations;