From c671701071257f80ce20bbbe3e7a2e31db9c219d Mon Sep 17 00:00:00 2001 From: Pablo Martin Date: Thu, 20 Jun 2024 14:37:55 +0200 Subject: [PATCH] boy scout: contact tests --- models/staging/xero/schema.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/models/staging/xero/schema.yml b/models/staging/xero/schema.yml index 7a89a51..8f7af29 100644 --- a/models/staging/xero/schema.yml +++ b/models/staging/xero/schema.yml @@ -10,6 +10,9 @@ models: - name: id_contact data_type: character varying description: Xero's unique identifier for the contact. + tests: + - not_null + - unique - name: account_number data_type: character varying @@ -18,14 +21,29 @@ models: - name: contact_name data_type: character varying description: The name for the customer. + tests: + - not_null + - unique - name: is_customer data_type: boolean description: Flag that shows if the contact is a Superhog customer. + tests: + - not_null + - accepted_values: + values: + - true + - false - name: is_supplier data_type: boolean description: Flag that shows if the contact is a Superhog supplier. + tests: + - not_null + - accepted_values: + values: + - true + - false - name: tax_number data_type: character varying