fix some integration tests now that PriceHistoryChart.test.tx is disabled
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 3m22s

This commit is contained in:
2025-11-27 19:22:19 -08:00
parent 897e4531c6
commit 18f1434fa1
11 changed files with 79 additions and 18 deletions

View File

@@ -44,6 +44,12 @@ CREATE TABLE IF NOT EXISTS public.profiles (
user_id UUID PRIMARY KEY REFERENCES public.users(user_id) ON DELETE CASCADE,
full_name TEXT,
avatar_url TEXT,
address_line_1 TEXT,
address_line_2 TEXT,
city VARCHAR(255),
province_state VARCHAR(255),
postal_code VARCHAR(10),
country VARCHAR(2),
preferences JSONB,
role TEXT CHECK (role IN ('admin', 'user')),
created_at TIMESTAMPTZ DEFAULT now() NOT NULL,
@@ -52,6 +58,12 @@ CREATE TABLE IF NOT EXISTS public.profiles (
updated_by UUID REFERENCES public.users(user_id) ON DELETE SET NULL
);
COMMENT ON TABLE public.profiles IS 'Stores public-facing user data, linked to the public.users table.';
COMMENT ON COLUMN public.profiles.address_line_1 IS 'Optional. The first line of the user''s street address.';
COMMENT ON COLUMN public.profiles.address_line_2 IS 'Optional. The second line of the user''s street address (e.g., apartment, suite).';
COMMENT ON COLUMN public.profiles.city IS 'Optional. The user''s city for regional content filtering.';
COMMENT ON COLUMN public.profiles.province_state IS 'Optional. The user''s province or state.';
COMMENT ON COLUMN public.profiles.postal_code IS 'Optional. The user''s postal or ZIP code.';
COMMENT ON COLUMN public.profiles.country IS 'Optional. The user''s two-letter ISO 3166-1 alpha-2 country code (e.g., CA, US).';
-- 4. The 'stores' table for normalized store data.
CREATE TABLE IF NOT EXISTS public.stores (