Strapi logo
Strapi
Create
Roadmap
Feedback
Developer Experience
112
Changelog

    Boards

  • Content Editing XP

  • Developer Experience

  • Documentation

  • Feature Requests

  • Strapi Cloud

  • Plugin Requests

  • Security

Powered by Canny

Developer Experience

Category

Select a category
      • Dynamic Applications
      • Uncategorized
Custom indexes in the schema
Basically the ability to define indexes in a standard way via the schema file (and maybe in the future via the CTB) module.exports = { collectionName: 'user', info: { singularName: 'user', pluralName: 'users', displayName: 'User', }, options: {}, pluginOptions: { }, attributes: { fullName: { type: 'string', min: 1, required: true, }, }, // experimental feature: indexes: [ { name: 'upload_folders_path_id_index', // this should be optional columns: ['full_name'], // This should be the name of the attribute not the db column name type: 'unique', }, ], };
7
·

planned

Powered by Canny