Files
expenses/server/migrations/20260928000000_seed_demo_data.sql
T
2026-10-03 20:53:10 +02:00

94 lines
1.9 KiB
SQL

INSERT INTO
users (id)
VALUES (
'00000000-0000-0000-0000-000000000001'
),
(
'00000000-0000-0000-0000-000000000002'
);
INSERT INTO
accounts (id, name)
VALUES (
'00000000-0000-0000-0000-000000000001',
'Checking Account'
),
(
'00000000-0000-0000-0000-000000000002',
'Savings Account'
);
INSERT INTO
account_members (account_id, user_id)
VALUES (
'00000000-0000-0000-0000-000000000001',
'00000000-0000-0000-0000-000000000001'
),
(
'00000000-0000-0000-0000-000000000002',
'00000000-0000-0000-0000-000000000002'
);
INSERT INTO
transactions (
id,
account_id,
amount_cents,
direction,
date,
description
)
VALUES (
'00000000-0000-0000-0000-000000000001',
'00000000-0000-0000-0000-000000000001',
320000,
'in',
'2026-09-01T09:00:00Z',
'Salary'
),
(
'00000000-0000-0000-0000-000000000002',
'00000000-0000-0000-0000-000000000001',
8450,
'out',
'2026-09-18T17:30:00Z',
'Groceries'
);
INSERT INTO
recurring_transactions (
id,
name,
account_id,
amount_cents,
direction,
starts_at,
ends_at,
recurrence_every,
recurrence_unit,
weekend_adjustment
)
VALUES (
'00000000-0000-0000-0000-000000000001',
'Salary',
'00000000-0000-0000-0000-000000000001',
320000,
'in',
'2026-10-01T09:00:00Z',
NULL,
1,
'month',
NULL
),
(
'00000000-0000-0000-0000-000000000002',
'Rent',
'00000000-0000-0000-0000-000000000001',
125000,
'out',
'2026-10-01T09:00:00Z',
NULL,
1,
'month',
'previous_business_day'
);