assets and tier plans revamp

Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
2026-08-01 17:44:25 +08:00
parent 39c3c4566b
commit cae958b5d5
41 changed files with 1271 additions and 165 deletions
+7
View File
@@ -39,6 +39,13 @@ const Asset = sequelize.define("Asset", {
thumbnail_url: { type: DataTypes.STRING(512), label: "", order: 0, hidden: true },
thumbnail_storage_key: { type: DataTypes.STRING(512), label: "", order: 0, hidden: true },
// ─── Background remux (.mov/.mkv → faststart .mp4) ───────────────────────
// "none" — asset never needed a remux (not video, or already a fast format).
// STRING, not ENUM — matches the STRING+CHECK column (see migration
// 20270101000076), not a real Postgres enum type.
transcode_status: { type: DataTypes.STRING(20), defaultValue: "none", label: "", order: 0, hidden: true },
transcode_error: { type: DataTypes.TEXT, label: "", order: 0, hidden: true },
// ─── Description ──────────────────────────────────────────────────────────
description: { type: DataTypes.TEXT, label: "Description", hidden: true },