feat(cli): remove indexes from generated content structure for all tables except 'users'

This commit is contained in:
melvinchia3636
2026-01-28 12:52:55 +08:00
parent 82c3f3e4c3
commit fab0120501

View File

@@ -37,6 +37,10 @@ async function mapCollectionRelation(
delete mapped.created
delete mapped.updated
if (mapped.name !== 'users') {
mapped.indexes = []
}
if (mapped.fields && Array.isArray(mapped.fields)) {
mapped.fields = mapped.fields.map(field => {
const cleanedField = { ...field }