podzahr/lib/types.ts
nfel 9a7e627329
main: second iter
Signed-off-by: nfel <nfilsaraee@gmail.com>
2025-12-27 22:41:36 +03:30

30 lines
571 B
TypeScript

export interface Song {
id: string;
title: string;
duration: string;
previewUrl: string; // URL to 30-second preview
fullUrl: string; // URL to full song (locked until purchase)
}
export interface Album {
id: string;
title: string;
coverImage: string;
year: number;
genre: string;
price: number;
description: string;
songs: Song[];
}
export interface Purchase {
id?: number;
albumId: string;
transactionId: string;
customerName?: string;
email?: string;
phoneNumber?: string;
txReceipt?: string;
purchaseDate: Date | number;
}