ContentScores


Description

This table is used to store the assigned score of each content based on the parameters.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id uuid 2147483647 gen_random_uuid()

Primary Key.

ContentId uuid 2147483647 null
Contents.id ContentScores_ContentId_fkey C

Foreign Key to the Content table.

ParameterId uuid 2147483647 null
ScoreParameters.id ContentScores_ParameterId_fkey C

Foreign Key to ScoreParameters table.

CategoryId uuid 2147483647 null
ParameterCategories.id ContentScores_CategoryId_fkey C

Foreign Key to ParameterCategory table. The category assigned to the content. Is used when the parameter dataType is CATEGORICAL

score int4 10 null

Individual score based on the parameter assigned to the content. Is used when the parameter dataType is NUMERICAL

createdAt timestamptz 35,6 now()
updatedAt timestamptz 35,6 now()

Indexes

Constraint Name Type Sort Column(s)
ContentScores_pkey Primary key Asc id
gcud_ContentScores_ContentId_idx Performance Asc ContentId
gcud_ContentScores_createdAt_idx Performance Asc createdAt

Relationships