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

# Semantic Types

<img src="https://mintcdn.com/dbx/yhR4_AKNF_MEUOA1/content/docs/security/data-masking/bb-semantic-type-overview.webp?fit=max&auto=format&n=yhR4_AKNF_MEUOA1&q=85&s=e0d71d64f2324a6f4aa9cc94661165b5" alt="overview" width="1843" height="866" data-path="content/docs/security/data-masking/bb-semantic-type-overview.webp" />

You may define semantic types and apply them to columns of different tables. Columns with the same semantic type will be masked with the same masking algorithm. This allows you to manage masking algorithms for many columns by controlling only a small number of semantic types.

1. Go to **Data Access** > **Semantic Types**. You'll see the default semantic type `Default` and `Default Partial`.

2. Click **Add**, and fill in the name and description.

   <img src="https://mintcdn.com/dbx/hVml3kA8vNK6vcVL/content/docs/security/data-masking/bb-add-semantic-type.webp?fit=max&auto=format&n=hVml3kA8vNK6vcVL&q=85&s=db20783ff7fbd6f4aa8e98f7203f0e93" alt="bb-add-semantic-type" width="2676" height="1086" data-path="content/docs/security/data-masking/bb-add-semantic-type.webp" />

3. Click the pencil under **Masking Algorithm** column to attach a masking algorithm. Click the checkmark to save.

   <img src="https://mintcdn.com/dbx/hVml3kA8vNK6vcVL/content/docs/security/data-masking/bb-add-algorithm.webp?fit=max&auto=format&n=hVml3kA8vNK6vcVL&q=85&s=aac25057d9f2238159beea50f57f765b" alt="bb-add-algorithm" width="2680" height="1116" data-path="content/docs/security/data-masking/bb-add-algorithm.webp" />

   *Check [Masking Algorithm](/security/data-masking/masking-algorithm) for more details.*

4. You may add other semantic types as needed.

   <img src="https://mintcdn.com/dbx/yhR4_AKNF_MEUOA1/content/docs/security/data-masking/bb-semantic-type-list.webp?fit=max&auto=format&n=yhR4_AKNF_MEUOA1&q=85&s=0ffae7cd21539f405b5160d904d96759" alt="bb-semantic-type-list" width="2476" height="928" data-path="content/docs/security/data-masking/bb-semantic-type-list.webp" />

There're two ways to apply this semantic type to take effect:

* [Global Masking](/security/data-masking/global-masking-rule)
* [Column Masking](/security/data-masking/column-masking)
