mirror of
https://github.com/Lifeforge-app/lifeforge.git
synced 2026-06-28 14:55:45 +00:00
feat(cli): remove indexes from generated content structure for all tables except 'users'
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user