-
Notifications
You must be signed in to change notification settings - Fork 70
/
state-tracking.model.ts
57 lines (50 loc) · 1.15 KB
/
state-tracking.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
49
50
51
52
53
54
55
56
57
import {Entity, model, property} from '@loopback/repository';
@model({
name: 'state_tracking',
description: 'This model represents a state tracking for the ingested data',
})
export class StateTracking extends Entity {
@property({
type: 'string',
id: true,
generated: true,
description: 'The unique identifier for a state tracking',
})
id?: string;
@property({
type: 'string',
required: true,
description: 'The state of the ingested data',
})
state: string;
@property({
type: 'string',
description: 'The payload of the ingested data',
})
payload?: string;
@property({
type: 'string',
required: true,
name: 'record_type',
description: 'The type of the ingested data',
})
recordType: string;
@property({
type: 'date',
required: true,
description: 'The timestamp of the ingested data',
})
timestamp: Date;
@property({
type: 'string',
description: 'The error of the ingested data if any',
})
error?: string;
@property({
type: 'string',
required: true,
name: 'record_id',
description: 'The id of the ingested data',
})
recordId: string;
}