feat: add asset types

This commit is contained in:
rajun 2026-10-27 16:28:48 +05:30
parent 8fa53668ee
commit 1d2720f273

28
app/types/asset.ts Normal file
View File

@ -0,0 +1,28 @@
import type { RecordModel } from 'pocketbase';
import type { Project } from '~/types/project';
export interface ArAsset extends RecordModel {
name: string;
glb_file: string;
glb_url: string;
usdz_file: string;
usdz_url: string;
qr_url: string;
project: string;
branded_qr: boolean;
created: string;
updated: string;
expand?: { project?: Project };
}
export interface AssetPage {
items: ArAsset[];
page: number;
totalPages: number;
totalItems: number;
}
export interface AssetCounts {
total: number;
unassigned: number;
}