> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcollate.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating Data Contracts | Collate Data Contracts Guide

> Create open-source data contracts directly in the Collate UI

# Create Data Contract

Data contracts are currently available for tables ingested into Collate. The following guide shows how a data contract was created for a snowflake.DEMO\_STAGE.JAFFLE\_SHOP.CUSTOMERS table.

To create a Data Contract for a Table in Collate:

* Go to the Table's page, select **Contract**, then **+ Add Contract**

<img src="https://mintcdn.com/collatedocs/jelCV8ecgr27vM6D/public/images/how-to-guides/contracts/create1.png?fit=max&auto=format&n=jelCV8ecgr27vM6D&q=85&s=82d3d32b33922b66c15e078bcb4b5176" alt="Adding a Data Contract to an Collate Table" width="3410" height="1147" data-path="public/images/how-to-guides/contracts/create1.png" />

* In *Contract Details*, be sure to give your new data contract a name. Optionally, you can assign Owners and provide a description of your data contract. Then select **Schema**.

<img src="https://mintcdn.com/collatedocs/jelCV8ecgr27vM6D/public/images/how-to-guides/contracts/create2.png?fit=max&auto=format&n=jelCV8ecgr27vM6D&q=85&s=f02e31ab2728a6048a0df4703073a325" alt="Adding Contract Details" width="3410" height="1772" data-path="public/images/how-to-guides/contracts/create2.png" />

* Select the columns of your table that you would like to add to your new data contract, or select all columns by checking the box at the top right. Then select **Semantics**

<img src="https://mintcdn.com/collatedocs/jelCV8ecgr27vM6D/public/images/how-to-guides/contracts/create3.png?fit=max&auto=format&n=jelCV8ecgr27vM6D&q=85&s=d68cdfc432654577dec30505fb185393" alt="Selecting a schema for an Collate Data Contract" width="3406" height="1812" data-path="public/images/how-to-guides/contracts/create3.png" />

* Add the business rules you would like to enforce in *Semantics*. For Collate Tables, rules can be created for:
  * Service
  * Owners
  * Display Name
  * Name
  * Description
  * Tags
  * Domain
  * Data Product
  * Tier

<img src="https://mintcdn.com/collatedocs/jelCV8ecgr27vM6D/public/images/how-to-guides/contracts/create4.png?fit=max&auto=format&n=jelCV8ecgr27vM6D&q=85&s=6d1167f7022482e2347d1e4178b5aa4d" alt="Adding rules to an Collate Data Contract" width="3410" height="1701" data-path="public/images/how-to-guides/contracts/create4.png" />

* Once a rule is created, you can **+ Add New Rule** to create more, or select **Quality**

<img src="https://mintcdn.com/collatedocs/jelCV8ecgr27vM6D/public/images/how-to-guides/contracts/create5.png?fit=max&auto=format&n=jelCV8ecgr27vM6D&q=85&s=b5341e3520f69559aeac34062aeebc81" alt="Adding more rules to an Collate Data Contract" width="3399" height="1618" data-path="public/images/how-to-guides/contracts/create5.png" />

* Select **+ Add Test** to add a [Data Quality Test](https://docs.open-metadata.org/latest/how-to-guides/data-quality-observability/quality/test) or tests to your new contract, then select **Save**

<img src="https://mintcdn.com/collatedocs/jelCV8ecgr27vM6D/public/images/how-to-guides/contracts/create6.png?fit=max&auto=format&n=jelCV8ecgr27vM6D&q=85&s=9dbfcc6d488ea5762dcd6b9936a6ee5f" alt="Adding data quality tests to an Collate Data Contract" width="3397" height="1617" data-path="public/images/how-to-guides/contracts/create6.png" />

* Once your new data contract has been created successfully, you can run it by selecting **> Run now**

<img src="https://mintcdn.com/collatedocs/jelCV8ecgr27vM6D/public/images/how-to-guides/contracts/create7.png?fit=max&auto=format&n=jelCV8ecgr27vM6D&q=85&s=47735f9a6f2c94b2b060bb5ab11ab899" alt="Running an Collate Data Contract" width="3410" height="1821" data-path="public/images/how-to-guides/contracts/create7.png" />
