@sourceloop/ctrl-plane-subscription-service
Version:
Subscription management microservice for SaaS control plane.
32 lines (26 loc) • 590 B
text/typescript
import {model, property} from '@loopback/repository';
import {UserModifiableEntity} from '@sourceloop/core';
({
name: 'services',
})
export class Service extends UserModifiableEntity {
({
type: 'string',
id: true,
generated: true,
})
id: string;
({
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;