Skip to content

Commit 24cbf2e

Browse files
Move category inside citation map instead of standalone field
Made-with: Cursor
1 parent 175843f commit 24cbf2e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/spacecat-shared-data-access/src/models/sentiment-topic/sentiment-topic.schema.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,6 @@ const schema = new SchemaBuilder(SentimentTopic, SentimentTopicCollection)
6161
required: true,
6262
default: [],
6363
})
64-
.addAttribute('categories', {
65-
type: 'list',
66-
items: { type: 'string' },
67-
required: false,
68-
default: [],
69-
postgrestIgnore: true,
70-
})
7164
.addAttribute('citations', {
7265
type: 'list',
7366
required: false,
@@ -78,6 +71,7 @@ const schema = new SchemaBuilder(SentimentTopic, SentimentTopicCollection)
7871
properties: {
7972
url: { type: 'string', required: true },
8073
timesCited: { type: 'number', required: true },
74+
category: { type: 'string', required: false },
8175
},
8276
},
8377
})

0 commit comments

Comments
 (0)