Add primary keys to tables
This commit is contained in:
2
food.ddl
2
food.ddl
@@ -1,6 +1,7 @@
|
|||||||
begin;
|
begin;
|
||||||
|
|
||||||
create table weight (
|
create table weight (
|
||||||
|
id integer primary key,
|
||||||
date datetime default (datetime('now', '+2 hours')),
|
date datetime default (datetime('now', '+2 hours')),
|
||||||
weight real not null
|
weight real not null
|
||||||
);
|
);
|
||||||
@@ -53,6 +54,7 @@ group by strftime('%Y', date)
|
|||||||
order by date desc;
|
order by date desc;
|
||||||
|
|
||||||
create table food(
|
create table food(
|
||||||
|
id integer primary key,
|
||||||
date datetime default (datetime('now', '+2 hours')),
|
date datetime default (datetime('now', '+2 hours')),
|
||||||
food varchar not null,
|
food varchar not null,
|
||||||
description varchar,
|
description varchar,
|
||||||
|
Reference in New Issue
Block a user