UNPKG

@jvhaile/loopback4-helper

Version:
48 lines (36 loc) 855 B
import {Entity, model, property} from '@loopback/repository'; import {TimeStampedEntity} from "./time.stamped.model"; @model({settings: {strict: false}}) export class BaseClient extends TimeStampedEntity { @property({ type: 'string', id: true, generated: true, }) id: string; @property({ type: 'string', required: true, }) name: string; @property({ type: 'string', }) apiKey: string; @property({ type: 'boolean', required: true, }) active: boolean; @property({ type: 'string', }) platform?: string; [prop: string]: any; constructor(data?: Partial<BaseClient>) { super(data); } } export interface BaseClientRelations { } export type BaseClientWithRelations = BaseClient & BaseClientRelations;