feat: avatar cleanup service

This commit is contained in:
alyssa 2024-10-26 03:30:58 +09:00
parent 81251282b6
commit 73c444c31d
13 changed files with 256 additions and 15 deletions

View file

@ -21,4 +21,6 @@ create index if not exists images_uploaded_by_account_idx on images (uploaded_by
create table if not exists image_queue (itemid serial primary key, url text not null, kind text not null);
alter table images add column if not exists uploaded_by_system uuid;
alter table images add column if not exists content_type text default 'image/webp';
alter table images add column if not exists content_type text default 'image/webp';
create table image_cleanup_jobs(id text references images(id) on delete cascade);