chore: server-and-serverless template
This commit is contained in:
10
db/sqlite-test-seed.sql
Normal file
10
db/sqlite-test-seed.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
-- Test-only seed: inserts a minimal user row so updateMessage's inner join
|
||||
-- on (user.id = messageState.updatedByUserId) resolves. This file is only
|
||||
-- used by the function-tests harness (never in the sandbox or production).
|
||||
INSERT INTO "user" (id, name, email, email_verified, created_at, updated_at)
|
||||
VALUES ('user-001', 'Test User', 'test@example.com', 1, datetime('now'), datetime('now'))
|
||||
ON CONFLICT (id) DO NOTHING;
|
||||
|
||||
INSERT INTO message_state (id, message)
|
||||
VALUES (1, 'Hello from Starter')
|
||||
ON CONFLICT (id) DO NOTHING;
|
||||
Reference in New Issue
Block a user