import { Entity , model , property } from '@loopback/repository' ; @ model ( ) export class UserCredentials extends Entity { @ property ( { type : 'string' , id : true , mongodb : { dataType : 'ObjectID' } , } ) id : string ; @ property ( { type : 'string' , required : true , } ) password : string ; @ property ( { type : 'string' , required : true , mongodb : { dataType : 'ObjectID' } , } ) userId : string ; constructor ( data ? ) { super ( data ) ; } } export interface UserCredentialsRelations { } export type UserCredentialsWithRelations = UserCredentials & UserCredentialsRelations ;