Loggest thy stuff
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.

18 lines
397 B

3 years ago
3 years ago
  1. -- +goose Up
  2. -- +goose StatementBegin
  3. CREATE TABLE stat (
  4. `id` INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
  5. `scope_id` INT NOT NULL,
  6. `name` VARCHAR(255) NOT NULL,
  7. `description` TEXT NOT NULL,
  8. `weight` FLOAT NOT NULL,
  9. `allowed_amounts` JSON,
  10. UNIQUE (`scope_id`, `name`)
  11. );
  12. -- +goose StatementEnd
  13. -- +goose Down
  14. -- +goose StatementBegin
  15. DROP TABLE IF EXISTS stat;
  16. -- +goose StatementEnd