suminb / finance

경제적 자유로의 여정

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unique key for asset_value

suminb opened this issue · comments

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)