import {Entity, model, property} from '@loopback/repository'; @model() export class User extends Entity { @property({ type: 'object', id: true, required: false, }) _id: object; @property({ type: 'string', required: false, }) email :string; @property({ type: 'string', required: false, }) password :string; @property({ type: 'string', required: false, }) username :string; constructor(data?: Partial) { super(data); } };