Added accounts API.
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
INSERT INTO
|
||||
transactions (
|
||||
id,
|
||||
description,
|
||||
amount_cents,
|
||||
direction,
|
||||
date
|
||||
)
|
||||
VALUES (
|
||||
'00000000-0000-0000-0000-000000000001',
|
||||
'Salary',
|
||||
320000,
|
||||
'in',
|
||||
'2026-09-01T09:00:00Z'
|
||||
),
|
||||
(
|
||||
'00000000-0000-0000-0000-000000000002',
|
||||
'Groceries',
|
||||
8450,
|
||||
'out',
|
||||
'2026-09-18T17:30:00Z'
|
||||
);
|
||||
|
||||
INSERT INTO
|
||||
recurring_transactions (
|
||||
id,
|
||||
name,
|
||||
amount_cents,
|
||||
direction,
|
||||
starts_at,
|
||||
ends_at,
|
||||
recurrence_every,
|
||||
recurrence_unit,
|
||||
weekend_adjustment
|
||||
)
|
||||
VALUES (
|
||||
'00000000-0000-0000-0000-000000000101',
|
||||
'Salary',
|
||||
320000,
|
||||
'in',
|
||||
'2026-10-01T09:00:00Z',
|
||||
NULL,
|
||||
1,
|
||||
'month',
|
||||
NULL
|
||||
),
|
||||
(
|
||||
'00000000-0000-0000-0000-000000000102',
|
||||
'Rent',
|
||||
125000,
|
||||
'out',
|
||||
'2026-10-01T09:00:00Z',
|
||||
NULL,
|
||||
1,
|
||||
'month',
|
||||
'previous_business_day'
|
||||
);
|
||||
|
||||
INSERT INTO
|
||||
accounts (id, name)
|
||||
VALUES (
|
||||
'00000000-0000-0000-0000-000000000001',
|
||||
'Checking Account'
|
||||
),
|
||||
(
|
||||
'00000000-0000-0000-0000-000000000002',
|
||||
'Savings Account'
|
||||
);
|
||||
Reference in New Issue
Block a user