UNPKG

@sourceloop/ctrl-plane-subscription-service

Version:

Subscription management microservice for SaaS control plane.

32 lines (26 loc) 590 B
import {model, property} from '@loopback/repository'; import {UserModifiableEntity} from '@sourceloop/core'; @model({ name: 'services', }) export class Service extends UserModifiableEntity { @property({ type: 'string', id: true, generated: true, }) id: string; @property({ type: 'string', required: true, description: 'name of the service', }) name: string; constructor(data?: Partial<Service>) { super(data); } } export interface ServiceRelations { // describe navigational properties here } export type ServiceWithRelations = Service;