-- +goose Up
-- +goose StatementBegin
CREATE TABLE IF NOT EXISTS bales (
    id SERIAL PRIMARY KEY,
    type_id INTEGER,
    timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
-- +goose StatementEnd

-- +goose StatementBegin
CREATE INDEX IF NOT EXISTS idx_bales_timestamp ON bales(timestamp);
-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin
DROP TABLE IF EXISTS bales;
-- +goose StatementEnd