stufflog graphql server
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.

17 lines
364 B

  1. -- +goose Up
  2. -- +goose StatementBegin
  3. CREATE TABLE item (
  4. item_id CHAR(32) NOT NULL PRIMARY KEY,
  5. name VARCHAR(255) NOT NULL,
  6. description TEXT NOT NULL,
  7. quantity_unit VARCHAR(255),
  8. image_url VARCHAR(255),
  9. FULLTEXT(name, description)
  10. );
  11. -- +goose StatementEnd
  12. -- +goose Down
  13. -- +goose StatementBegin
  14. DROP TABLE item;
  15. -- +goose StatementEnd