remove 'created_at' fields, we have that in the id

This commit is contained in:
Joe Ardent 2023-06-29 15:33:15 -07:00
parent fc2d575e18
commit 5782651aa6

View file

@ -11,7 +11,6 @@ create table if not exists witches (
email text,
last_seen int,
pwhash blob not null,
created_at int not null default (unixepoch()),
last_updated int not null default (unixepoch())
);
@ -24,7 +23,6 @@ create table if not exists watches (
length int,
release_date int,
added_by blob not null, -- ID of the user that added it
created_at int not null default (unixepoch()),
last_updated int not null default (unixepoch()),
foreign key (added_by) references witches (id)
);
@ -40,7 +38,6 @@ create table if not exists witch_watch (
watched boolean not null,
when_added int,
when_watched int,
created_at int not null default (unixepoch()),
last_updated int not null default (unixepoch()),
foreign key (witch) references witches (id) on delete cascade on update no action,
foreign key (watch) references watches (id) on delete cascade on update no action
@ -51,7 +48,6 @@ create table if not exists witch_watch (
create table if not exists covens (
witch blob not null primary key,
coven blob, -- possibly empty friends list in some app-specific format
created_at int not null default (unixepoch()),
last_updated int not null default (unixepoch()),
foreign key (witch) references witches (id) on delete cascade on update no action
);
@ -62,7 +58,6 @@ create table if not exists watch_notes (
watch blob not null,
note blob,
public boolean not null,
created_at int not null default (unixepoch()),
last_updated int not null default (unixepoch()),
foreign key (witch) references witches (id) on delete cascade on update no action,
foreign key (watch) references watches (id) on delete cascade on update no action