You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
347 B

4 years ago
  1. -- +goose Up
  2. -- +goose StatementBegin
  3. CREATE TABLE item (
  4. item_id CHAR(16) PRIMARY KEY,
  5. user_id CHAR(36) NOT NULL,
  6. group_id CHAR(16) NOT NULL,
  7. group_weight INT NOT NULL,
  8. name TEXT NOT NULL,
  9. description TEXT NOT NULL
  10. );
  11. -- +goose StatementEnd
  12. -- +goose Down
  13. -- +goose StatementBegin
  14. DROP TABLE item;
  15. -- +goose StatementEnd