-
Notifications
You must be signed in to change notification settings - Fork 1
/
maml.yml
69 lines (63 loc) · 1.71 KB
/
maml.yml
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
# maml- migration apathy markup lanaguage
# integer, float, date, datetime, timestamp, time, text, string, binary, boolean
#
# specify field type by symbol prefix as follows
# default type is string, except where field has _id suffice- then it's integer (override by adding prefix as shown below)
# .integer, ..float, %date, %%datetime, @time, @@timestamp, :string, ::text, =boolean, &binary
#
# level 1: module, level 2: class, level 3: field
# maml.yml is a sample file for a starting point. maml sample copies it to current directory.
innerplate:
Plate:
- day_id # any _id defaults to integer
- meal_id 50 true
- notes
- status
- completeness
- .calories
- title
Plate_Item:
- plate_id
- item_id
- uofm_id
- .units
- .calories
- notes
Conversion:
- item_id
- base_uofm_id
- uofm_id
- ratio
UnitOfMeasure:
- name
- system
- .related_measures
- ..ratio
- =is_base
Meal:
- name
- .proportion
- type %w[Meal Snack]
# loaded as my test case...
# Commitment:
# - %start_date
# - %end_date
# - ..goal_weight
# - ..start_weight
# - ..end_weight
# - ..current_weight
# - .stable_daily_calories
# - .goal_daily_calories
# - .calorie_margin
Item:
- =in_library
- =is_abstract
- .level
- name
- description
- category_id
- .calories
- uofm_id
- information_source
- accuracy %w[Draft Good Certain]
- category %w[Grains Protein Dairy Fruit Vegetables]