- Remove backend Medusa.js (TypeScript) e substitui pelo backend Go (saveinmed-performance-core) - Corrige testes auth.test.ts: alinha paths de API (v1/ sem barra inicial) e campo access_token - Corrige GroupedProductCard.test.tsx: ajusta distância formatada (toFixed) e troca userEvent por fireEvent com fakeTimers - Corrige AuthContext.test.tsx: usa vi.hoisted() para mocks e corrige parênteses no waitFor Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
586 B
SQL
16 lines
586 B
SQL
CREATE TABLE IF NOT EXISTS shipping_methods (
|
|
id UUID PRIMARY KEY,
|
|
vendor_id UUID NOT NULL REFERENCES companies(id),
|
|
type TEXT NOT NULL,
|
|
active BOOLEAN NOT NULL DEFAULT FALSE,
|
|
preparation_minutes INT NOT NULL DEFAULT 0,
|
|
max_radius_km DOUBLE PRECISION NOT NULL DEFAULT 0,
|
|
min_fee_cents BIGINT NOT NULL DEFAULT 0,
|
|
price_per_km_cents BIGINT NOT NULL DEFAULT 0,
|
|
free_shipping_threshold_cents BIGINT,
|
|
pickup_address TEXT,
|
|
pickup_hours TEXT,
|
|
created_at TIMESTAMPTZ NOT NULL,
|
|
updated_at TIMESTAMPTZ NOT NULL,
|
|
UNIQUE (vendor_id, type)
|
|
);
|