Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create simple asset table #105

Closed
jedmccaleb opened this issue Oct 17, 2017 · 0 comments · Fixed by #108
Closed

Create simple asset table #105

jedmccaleb opened this issue Oct 17, 2017 · 0 comments · Fixed by #108
Assignees
Labels

Comments

@jedmccaleb
Copy link
Contributor

jedmccaleb commented Oct 17, 2017

As a beginning, and to help with this issue: #103. Maybe we should start with a simple compact history_assets table that will serve as a lookup table, something like this:

CREATE TABLE history_assets (
  id SERIAL PRIMARY KEY ,
  asset_type VARCHAR(64) NOT NULL,
  asset_code VARCHAR(12) NOT NULL,
  asset_issuer VARCHAR(56) NOT NULL,
  UNIQUE(asset_type, asset_code, asset_issuer)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants