Skip to content

Commit 4a27e7a

Browse files
committed
Use bigint as user_id type to avoid integer overflow
1 parent 4239235 commit 4a27e7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/db.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ await pool.query(
1111
`CREATE TABLE IF NOT EXISTS transactions(
1212
id SERIAL,
1313
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
14-
user_id INTEGER,
14+
user_id BIGINT,
1515
user_name TEXT,
1616
description TEXT,
1717
amount_cents INTEGER

0 commit comments

Comments
 (0)