what2watch/migrations/20240409233522_views.up.sql

5 lines
484 B
MySQL
Raw Normal View History

create view if not exists w as select julid_string(id) id, kind, title, metadata_url, length, release_date, last_updated from watches;
2024-04-10 00:44:37 +00:00
create view if not exists s as select julid_string(id) id, name, born, died from stars;
create view if not exists u as select julid_string(id) id, username, displayname, email, last_seen, last_updated from users;
create view if not exists i as select julid_string(id) id, julid_string(owner) owner, expires_at, remaining, last_updated from invites;