This repository has been archived by the owner on Dec 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathmeasures.cds
69 lines (66 loc) · 1.55 KB
/
measures.cds
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
58
59
60
61
62
63
64
65
66
67
68
69
namespace clouds.foundation;
using clouds.foundation.CodeList from './codes';
context Measures {
type Length: Decimal(10, 3) @(
title: '{i18n>length}',
description: '{i18n>lengthDescription}',
Measures.Unit: Units.Length
);
type Area: Decimal(10, 3) @(
title: '{i18n>area}',
description: '{i18n>areaDescription}',
Measures.Unit: Units.Area
);
type Volume: Decimal(10, 3) @(
title: '{i18n>volume}',
description: '{i18n>volumeDescription}',
Measures.Unit: Units.Volume
);
type Weight: Decimal(10, 3) @(
title: '{i18n>weight}',
description: '{i18n>weightDescription}',
Measures.Unit: Units.Weight
);
type Base: Decimal(10, 0) @(
title: '{i18n>base}',
description: '{i18n>baseDescription}',
Measures.Unit: Units.Base
);
context Units {
type Length: String(3) @(
title: '{i18n>lengthUnit}',
description: '{i18n>lengthUnitDescription}'
);
type Area: String(3) @(
title: '{i18n>areaUnit}',
description: '{i18n>areaUnitDescription}'
);
type Volume: String(3) @(
title: '{i18n>volumeUnit}',
description: '{i18n>volumeUnitDescription}'
);
type Weight: String(3) @(
title: '{i18n>weightUnit}',
description: '{i18n>weightUnitDescription}'
);
type Base: String(3) @(
title: '{i18n>baseUnit}',
description: '{i18n>baseUnitDescription}'
);
entity Lengths: CodeList {
key code: Length;
}
entity Areas: CodeList {
key code: Area;
}
entity Volumes: CodeList {
key code: Volume;
}
entity Weights: CodeList {
key code: Weight;
}
entity Bases: CodeList {
key code: Base;
}
}
}