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.

16 lines
332 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. image_url VARCHAR(255),
  8. FULLTEXT(name, description)
  9. );
  10. -- +goose StatementEnd
  11. -- +goose Down
  12. -- +goose StatementBegin
  13. DROP TABLE item;
  14. -- +goose StatementEnd