Is it good to use UUID as primary key ?

Hi, i want to define manually an id for my entry to be able to create at tame time a folder with same id.

So using uuid can be a problem ?

or maybe i have to get a normal id used for everything, and a uuid used to identify my entry in folders (for images) and for client supports ?
  id_store: int("id_store").primaryKey().autoincrement(),
  uuid: uuid("uuid").notNull(),
  id_currency: int("id_currency").references(() => currencies.id_currency),
  name: varchar("name", { length: 256 }),
Was this page helpful?