suminb / finance

경제적 자유로의 여정
BSD 4-Clause "Original" or "Old" License
130 stars 10 forks source link

Unique key for asset_value #49

Open suminb opened 3 years ago

suminb commented 3 years ago

Currently defined as:

-- auto-generated definition
create unique index asset_value_asset_id_evaluated_at_granularity_key
    on asset_value (asset_id, evaluated_at, granularity);

We're going to need source as the fourth element in the unique key as:

(asset_id, evaluated_at, granularity, source)