This plugin adds support for ULID field type to Strapi as a Custom field. The field will be automatically generated when creating a new entry.
This plugin is inspired and based on strapi-auto-uuid by Cringe Studio. All credits go to them.
-
Install the plugin by running:
npm install strapi-ulid
-
Rebuild admin panel:
npm run build
Add the custom field from the admin panel:
or
Add the following to your content-type schema:
{
// ....
attributes: {
// ....
ulid: {
type: "customField",
customField: "plugin::field-ulid.ulid",
},
// ....
},
// ....
}
This project is licensed under the MIT License - see the LICENSE file for details