rating.badge
|
Cascading Deletes: Deleting rows from this table will cascade to: rating.popularity_parameter, actor.org_unit. |
|
Deferrable Constraints: The following FK constraints are deferrable — they are checked at transaction end, not statement end: |
Columns
| Column | Type | Nullable | Default | Notes |
|---|---|---|---|---|
id PK |
|
No |
nextval('rating.badge_id_seq'::regclass) |
|
name |
|
No |
||
description |
|
Yes |
||
scope FK |
|
No |
||
weight |
|
No |
1 |
|
horizon_age |
|
Yes |
||
importance_age |
|
Yes |
||
importance_interval |
|
No |
'1 day'::interval |
|
importance_scale |
|
Yes |
||
recalc_interval |
|
No |
'1 mon'::interval |
|
attr_filter |
|
Yes |
||
src_filter FK |
|
Yes |
||
circ_mod_filter FK |
|
Yes |
||
loc_grp_filter FK |
|
Yes |
||
popularity_parameter FK |
|
No |
||
fixed_rating |
|
Yes |
||
percentile |
|
Yes |
||
discard |
|
No |
0 |
|
last_calc |
|
Yes |
Foreign Keys
| Column(s) | References | On Delete | On Update | Deferrable | Constraint |
|---|---|---|---|---|---|
|
SET NULL |
CASCADE |
DEFERRED |
|
|
|
SET NULL |
CASCADE |
DEFERRED |
|
|
|
CASCADE |
CASCADE |
DEFERRED |
|
|
|
CASCADE |
CASCADE |
DEFERRED |
|
|
|
SET NULL |
CASCADE |
DEFERRED |
|
Check Constraints
-
badge_fixed_rating_check:CHECK -
badge_importance_scale_check:CHECK -
badge_percentile_check:CHECK
Indexes
| Index | Method | Definition |
|---|---|---|
|
btree |
|
|
btree |
|