# Create a unique identifier (id) in the schema

**URL:** <https://forum.inductiveautomation.com/t/create-a-unique-identifier-id-in-the-schema/102744>\
**Category:** Module Development\
**Tags:** perspective\
**Created:** [February 23, 2025, 7:25am UTC](https://forum.inductiveautomation.com/t/create-a-unique-identifier-id-in-the-schema/102744 "2025-02-23T07:25:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mehrdad\_Telli](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mehrdad_telli/32/77763_2.png) [@Mehrdad\_Telli](https://forum.inductiveautomation.com/u/Mehrdad_Telli)\
**Post date:** [February 23, 2025, 7:25am UTC](https://forum.inductiveautomation.com/t/create-a-unique-identifier-id-in-the-schema/102744/1 "2025-02-23T07:25:46Z")

</div>

I used the code below to generate a unique ID, but apparently it is not supported, is there a way to generate a unique ID in schema?

```python
type: string
format: uuid

```

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 24, 2025, 5:57pm UTC](https://forum.inductiveautomation.com/t/create-a-unique-identifier-id-in-the-schema/102744/2 "2025-02-24T17:57:38Z")

</div>

The schema is just a _description_ of your properties. It doesn't actually contain any of your component logic.

What are you actually trying to do? You can easily generate a random UUID in your component logic, on the front or backend.

---

<div class="post-metadata">

**Author:** ![Mehrdad\_Telli](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mehrdad_telli/32/77763_2.png) [@Mehrdad\_Telli](https://forum.inductiveautomation.com/u/Mehrdad_Telli)\
**Post date:** [February 26, 2025, 6:02am UTC](https://forum.inductiveautomation.com/t/create-a-unique-identifier-id-in-the-schema/102744/3 "2025-02-26T06:02:42Z")

</div>

Finally generated it in the component code, but due to the large number of elements I was looking for a better solution to reduce the generation time.
