Files
wehub-resource-sync 3a28426bf4
Lint and Format Check / lint-and-format (push) Failing after 0s
Check Migrations / Check for duplicate migration numbers (push) Failing after 1s
CI Pre-merge Check / CI Pre-merge Check (push) Failing after 2m17s
chore: import upstream snapshot with attribution
2026-07-13 12:23:40 +08:00

18 lines
743 B
SQL

-- Table: test_users2
CREATE TABLE IF NOT EXISTS test_users (
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
nickname text,
avatar_url text,
birthday date,
extra jsonb,
created_at timestamp with time zone DEFAULT now(),
updated_at timestamp with time zone DEFAULT now()
);
CREATE POLICY "Enable read access for all users" ON test_users FOR SELECT TO public USING (true);
CREATE POLICY "Enable update for users based on user_id" ON test_users FOR UPDATE TO authenticated USING ((uid() = id));
-- Sample data for test_users
INSERT INTO test_users (nickname, avatar_url, birthday) VALUES
('John Doe', 'https://example.com/avatar1.jpg', '1990-01-01'),
('Jane Smith', 'https://example.com/avatar2.jpg', '1985-05-15');