package com.abbidot.tracker.bean

import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey
import com.abbidot.tracker.database.MyDatabase
import kotlinx.parcelize.Parcelize

/**
 *Created  by .yzq on 2022/4/1/001.
 * @link
 * @description:保存用户输入信用卡
 */
@Parcelize
@Entity(tableName = MyDatabase.CREDIT_CARD_TABLE)
data class CreditCardBean(
    @PrimaryKey @ColumnInfo var cardNumber: String,
    @ColumnInfo var firstName: String,
    @ColumnInfo var lastName: String,
    @ColumnInfo var cardName: String,
    @ColumnInfo var expirationDate: String,
    @ColumnInfo var cvv: String,//信用卡验证值（Card Verification Value）
    @ColumnInfo var countryCode: String,
    @ColumnInfo var isPrimary: Boolean,
    @Ignore var checked: Boolean = false
) : Parcelable {
    constructor() : this("", "", "", "", "", "", "USA", false, false)
}
