Skip to content

Commit

Permalink
feat(#190): add selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
witash committed Jan 30, 2025
1 parent 9c23188 commit 78d3cd5
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions models/contacts/contacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: 1
models:
- name: contact
config:
tags: ["base"]
contract:
enforced: true
columns:
Expand Down Expand Up @@ -44,6 +45,7 @@ models:
data_type: string
- name: contact_type
config:
tags: ["base"]
contract:
enforced: true
columns:
Expand All @@ -55,6 +57,7 @@ models:
data_type: boolean
- name: person
config:
tags: ["base"]
contract:
enforced: true
columns:
Expand All @@ -81,6 +84,7 @@ models:
data_type: string
- name: place
config:
tags: ["base"]
contract:
enforced: true
columns:
Expand Down
1 change: 1 addition & 0 deletions models/forms/forms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: 1
models:
- name: data_record
config:
tags: ["base"]
contract:
enforced: true
columns:
Expand Down
1 change: 1 addition & 0 deletions models/root/root.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ sources:
models:
- name: document_metadata
config:
tags: ["base"]
contract:
enforced: true
columns:
Expand Down
4 changes: 4 additions & 0 deletions models/users/user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: 1
models:
- name: user
config:
tags: ["user"]
contract:
enforced: true
columns:
Expand Down Expand Up @@ -34,6 +35,7 @@ models:
data_type: string
- name: feedback
config:
tags: ["user"]
contract:
enforced: true
columns:
Expand Down Expand Up @@ -66,6 +68,7 @@ models:
data_type: string
- name: telemetry
config:
tags: ["user"]
contract:
enforced: true
columns:
Expand Down Expand Up @@ -100,6 +103,7 @@ models:
data_type: string
- name: telemetry_devices
config:
tags: ["user"]
contract:
enforced: true
columns:
Expand Down
9 changes: 9 additions & 0 deletions selectors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
selectors:
- name: base_models
description: "Incremental models for the medic database, including contacts and form submissions"
definition:
tag: "base"
- name: users
description: "Models for telemetry and other user data"
definition:
tag: "user"

0 comments on commit 78d3cd5

Please sign in to comment.