CREATE TABLE competitors (
    id                 BIGSERIAL PRIMARY KEY,
    tenant_id          BIGINT NOT NULL REFERENCES tenants(id),
    brand_id           BIGINT NOT NULL REFERENCES brands(id),
    name               VARCHAR(200) NOT NULL,
    website            TEXT,
    description        TEXT,
    product_lines_json JSONB,
    created_at         TIMESTAMPTZ NOT NULL DEFAULT NOW(),
    updated_at         TIMESTAMPTZ NOT NULL DEFAULT NOW(),
    deleted_at         TIMESTAMPTZ
);
CREATE INDEX idx_competitor_brand ON competitors(brand_id);
