import SwiftData
import Foundation

@Model
public final class SavedSong {
    public var id: String = ""
    public var title: String = ""
    public var artist: String = ""
    public var lyricsES: String = ""
    public var lyricsEN: String = ""
    public var albumArtURL: String = ""
    public var appleMusicURL: String = ""
    public var savedDate: Date = Date()

    public init(title: String, artist: String, lyricsES: String, lyricsEN: String, albumArtURL: String = "", appleMusicURL: String = "") {
        self.id = UUID().uuidString
        self.title = title
        self.artist = artist
        self.lyricsES = lyricsES
        self.lyricsEN = lyricsEN
        self.albumArtURL = albumArtURL
        self.appleMusicURL = appleMusicURL
        self.savedDate = Date()
    }
}
