# SIN (SINGenerator)

The [SIN](https://docs.tonic.ai/app/generation/generators/generator-reference/sin) generator generates a new valid Canadian Social Insurance Number that preserves the formatting of the original value.

## Link object structure <a href="#generator-api-sin-link-object" id="generator-api-sin-link-object"></a>

The SIN generator does not support linking. It can be self-consistent, but not consistent with another column. You cannot configure differential privacy.

There is no generator-specific configuration.

```json
{
  "schema": "string",
  "table": "string",
  "column": "string",
  "path": "string",  //JSON fields only
  "dataType": "string",  //MongoDB, Amazon DynamoDB, and JSON fields only
  "metadata": {
    "presetId": "string",
    "generatorId": "SinGenerator",
    "isConsistent": boolean,
    "encryptionProcessor": "x-on", //To use configured Structural data encryption
    "customValueProcessor": "string"  //If custom value processor applied
  }
}
```

## Example replacement <a href="#generator-api-sin-replacement" id="generator-api-sin-replacement"></a>

In the following example replacement for the SIN generator, consistency is disabled.

```json
{
  "name": "id_number",
  "schema": "public",
  "table": "users",
  "links": [
    {
      "schema": "public",
      "table": "users",
      "column": "id_number",
      "metadata": {
        "presetId": "SinGenerator",
        "generatorId": "SinGenerator",
        "isConsistent": false
      }
    }
  ]
}
```
