remove 'created_at' fields, we have that in the id
This commit is contained in:
parent
fc2d575e18
commit
5782651aa6
1 changed files with 0 additions and 5 deletions
|
@ -11,7 +11,6 @@ create table if not exists witches (
|
||||||
email text,
|
email text,
|
||||||
last_seen int,
|
last_seen int,
|
||||||
pwhash blob not null,
|
pwhash blob not null,
|
||||||
created_at int not null default (unixepoch()),
|
|
||||||
last_updated int not null default (unixepoch())
|
last_updated int not null default (unixepoch())
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -24,7 +23,6 @@ create table if not exists watches (
|
||||||
length int,
|
length int,
|
||||||
release_date int,
|
release_date int,
|
||||||
added_by blob not null, -- ID of the user that added it
|
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()),
|
last_updated int not null default (unixepoch()),
|
||||||
foreign key (added_by) references witches (id)
|
foreign key (added_by) references witches (id)
|
||||||
);
|
);
|
||||||
|
@ -40,7 +38,6 @@ create table if not exists witch_watch (
|
||||||
watched boolean not null,
|
watched boolean not null,
|
||||||
when_added int,
|
when_added int,
|
||||||
when_watched int,
|
when_watched int,
|
||||||
created_at int not null default (unixepoch()),
|
|
||||||
last_updated 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 (witch) references witches (id) on delete cascade on update no action,
|
||||||
foreign key (watch) references watches (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 (
|
create table if not exists covens (
|
||||||
witch blob not null primary key,
|
witch blob not null primary key,
|
||||||
coven blob, -- possibly empty friends list in some app-specific format
|
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()),
|
last_updated int not null default (unixepoch()),
|
||||||
foreign key (witch) references witches (id) on delete cascade on update no action
|
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,
|
watch blob not null,
|
||||||
note blob,
|
note blob,
|
||||||
public boolean not null,
|
public boolean not null,
|
||||||
created_at int not null default (unixepoch()),
|
|
||||||
last_updated 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 (witch) references witches (id) on delete cascade on update no action,
|
||||||
foreign key (watch) references watches (id) on delete cascade on update no action
|
foreign key (watch) references watches (id) on delete cascade on update no action
|
||||||
|
|
Loading…
Reference in a new issue