chore: reorganize rust crates

This commit is contained in:
alyssa 2025-01-02 00:50:36 +00:00
parent 357122a892
commit 16ce67e02c
58 changed files with 6 additions and 13 deletions

View file

@ -1,26 +0,0 @@
create table if not exists images
(
id text primary key,
url text not null,
original_url text,
original_file_size int,
original_type text,
original_attachment_id bigint,
file_size int not null,
width int not null,
height int not null,
kind text not null,
uploaded_at timestamptz not null,
uploaded_by_account bigint
);
create index if not exists images_original_url_idx on images (original_url);
create index if not exists images_original_attachment_id_idx on images (original_attachment_id);
create index if not exists images_uploaded_by_account_idx on images (uploaded_by_account);
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';
create table image_cleanup_jobs(id text references images(id) on delete cascade);