First commit for backend

This commit is contained in:
2025-05-07 19:47:54 +02:00
parent ae4fd727ca
commit 560563117b
5 changed files with 314 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
create table users
(
id integer primary key,
name text not null
) strict;
create table history
(
id integer primary key,
user_id integer not null,
date date not null,
amount integer not null
);
create table goals
(
id integer primary key,
name text not null,
target integer not null,
progress integer not null,
weight real not null
);
create table tasks
(
id integer primary key,
name text not null,
reward integer not null,
assigned integer
);