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
405 B

4 years ago
  1. -- +goose Up
  2. -- +goose StatementBegin
  3. CREATE TABLE device_property
  4. (
  5. device_id INT NOT NULL,
  6. prop_key VARCHAR(255) NOT NULL,
  7. prop_value VARCHAR(255) NOT NULL,
  8. is_user TINYINT NOT NULL DEFAULT 0,
  9. PRIMARY KEY (device_id, prop_key)
  10. );
  11. -- +goose StatementEnd
  12. -- +goose Down
  13. -- +goose StatementBegin
  14. DROP TABLE device_property;
  15. -- +goose StatementEnd