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