修复了一点bug,然后增加了图层拆分更多的功能

This commit is contained in:
andy
2026-09-02 16:06:45 +08:00
parent 1305a9cdd8
commit ce8372e878
31 changed files with 2567 additions and 391 deletions

View File

@@ -273,6 +273,21 @@ alter table generation_jobs add column if not exists billing jsonb;
alter table usage_events add column if not exists charged_amount_fen bigint;
alter table usage_events add column if not exists currency text;
create table if not exists seedream_layer_compositions (
job_id text primary key references generation_jobs(id) on delete cascade,
owner_id text not null,
base_asset_id text not null,
base_visible boolean not null default true,
layers jsonb not null default '[]'::jsonb,
version bigint not null default 1 check (version > 0),
created_at timestamptz not null default now(),
updated_at timestamptz not null default now(),
constraint seedream_layer_compositions_layers_array_check check (jsonb_typeof(layers) = 'array')
);
create index if not exists seedream_layer_compositions_owner_updated_idx
on seedream_layer_compositions(owner_id, updated_at desc);
create table if not exists billing_price_rules (
id text primary key,
provider text not null check (provider in ('volcengine-visual', 'evolink', 'seedance', 'seedream', 'bailian', 'mock')),