major features update

This commit is contained in:
Robert Perce 2025-11-27 13:45:21 -06:00
parent 519fb49901
commit 4e2fab67c5
48 changed files with 3925 additions and 208 deletions

View file

@ -0,0 +1,12 @@
create table if not exists contacts (
id integer primary key autoincrement,
birthday text,
manually_freshened_at date -- text, iso8601 date
);
create table if not exists names (
id integer primary key,
contact_id integer not null references contacts(id) on delete cascade,
sort integer not null,
name text not null
);

View file

@ -0,0 +1,13 @@
create table if not exists journal_entries (
id integer primary key autoincrement,
value text not null,
date text not null
);
create table if not exists contact_mentions (
entry_id integer not null references journal_entries(id) on delete cascade,
contact_id integer not null references contacts(id) on delete cascade,
input_text text not null,
byte_range_start integer not null,
byte_range_end integer not null
);

View file

@ -0,0 +1,6 @@
create table if not exists settings (
id integer primary key,
ics_path text
);
insert into settings (id) values (1) on conflict (id) do nothing;

View file

@ -0,0 +1,6 @@
create table if not exists addresses (
id integer primary key,
contact_id integer not null references contacts(id) on delete cascade,
label text,
value text not null
);