package com.adpro.pixelshow.data

import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
import kotlinx.parcelize.Parcelize

@Parcelize
@Entity(tableName = "movies",
        indices = [Index(value = ["imId"], unique = true)])
data class Movie(
    @PrimaryKey(autoGenerate = true) var id: Int = 0,
    @ColumnInfo(name = "classificationName") var classificationName: String = "",
    @ColumnInfo(name = "imId") var imId: String = "",
    @ColumnInfo(name = "description") var description: String = "",
    @ColumnInfo(name = "fullUrl") var fullUrl: String = "",
    @ColumnInfo(name = "previewUrl1080") var previewUrl1080: String = "",
    @ColumnInfo(name = "previewUrl400") var previewUrl400: String = "",
    @ColumnInfo(name = "previewUrl200") var previewUrl200: String = "",
    @ColumnInfo(name = "is_like") var isLike: Boolean = false,
    @ColumnInfo(name = "isDownload") var isDownload: Boolean = false
):Parcelable
