Skip to content

Commit fa21821

Browse files
feat(data-access): add timesCited attribute to SentimentTopic schema
Adds a numeric timesCited field (default 0) to track how many times a topic has been cited across analyses. Made-with: Cursor
1 parent dc39ba0 commit fa21821

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ const schema = new SchemaBuilder(SentimentTopic, SentimentTopicCollection)
6161
required: true,
6262
default: [],
6363
})
64+
.addAttribute('timesCited', {
65+
type: 'number',
66+
required: false,
67+
default: 0,
68+
})
6469
.addAttribute('enabled', {
6570
type: 'boolean',
6671
required: true,

0 commit comments

Comments
 (0)