platform-codebase/features/platform-admin/frontend-admin/e2e/fixtures/07-seed-platform-admin.sql

9 lines
835 B
SQL
Executable file

-- Seed data for Platform Admin E2E tests
-- Populates devices table with test data
INSERT INTO devices (id, "userId", "deviceId", "deviceName", "isAuthorized", "authCode", "lastSyncAt", "createdAt")
VALUES
('550e8400-e29b-41d4-a716-446655440001'::UUID, '123e4567-e89b-12d3-a456-426614174000'::UUID, 'mac-book-pro-2021', 'Lilith''s MacBook Pro', true, NULL, NOW() - INTERVAL '1 hour', NOW() - INTERVAL '30 days'),
('550e8400-e29b-41d4-a716-446655440002'::UUID, '123e4567-e89b-12d3-a456-426614174000'::UUID, 'imac-2022', 'Lilith''s iMac', true, NULL, NOW() - INTERVAL '5 hours', NOW() - INTERVAL '60 days'),
('550e8400-e29b-41d4-a716-446655440003'::UUID, '123e4567-e89b-12d3-a456-426614174001'::UUID, 'macbook-air-2023', 'Quinn''s MacBook Air', false, '123456', NULL, NOW() - INTERVAL '1 day')
ON CONFLICT (id) DO NOTHING;