-
Notifications
You must be signed in to change notification settings - Fork 70
/
templates.model.ts
48 lines (41 loc) · 983 Bytes
/
templates.model.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Copyright (c) 2023 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {model, property} from '@loopback/repository';
import {CoreEntity} from '@sourceloop/core';
@model({settings: {strict: false}})
export class Templates extends CoreEntity<Templates> {
@property({
type: 'string',
id: true,
generated: false,
required: true,
})
id: string;
@property({
type: 'string',
required: true,
name: 'payment_gateway_id',
})
paymentGatewayId: string;
@property({
type: 'string',
required: true,
})
name: string;
@property({
type: 'string',
required: true,
})
template: string;
@property({
type: 'string',
required: true,
})
type: string;
// Define well-known properties here
// Indexer property to allow additional data
// eslint-disable-next-line @typescript-eslint/no-explicit-any
[prop: string]: any; //NOSONAR
}