Sebastiaan de Schaetzen 302ceaa629
All checks were successful
Backend Build and Test / build (push) Successful in 3m27s
Backend Deploy / build (push) Successful in 1m47s
Update default allowance, but differently (#84)
Reviewed-on: #84
2025-05-25 15:07:51 +02:00

36 lines
696 B
SQL

create table users
(
id integer primary key,
name text not null,
weight real not null default 10.0,
balance integer not null default 0
) strict;
create table history
(
id integer primary key,
user_id integer not null,
timestamp date not null,
amount integer not null
);
create table allowances
(
id integer primary key,
user_id integer not null,
name text not null,
target integer not null,
balance integer not null default 0,
weight real not null
);
create table tasks
(
id integer primary key,
name text not null,
reward integer not null,
assigned integer
);
insert into users (name) values ('Seeseemelk'), ('Huffle');