12 lines
333 B
SQL
12 lines
333 B
SQL
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
|
|
);
|