mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 06:17:55 +00:00
chore: merge avatars service into monorepo
This commit is contained in:
parent
f427d4d727
commit
17f5561293
27 changed files with 1925 additions and 111 deletions
24
services/avatars/src/init.sql
Normal file
24
services/avatars/src/init.sql
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
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';
|
||||
Loading…
Add table
Add a link
Reference in a new issue