package io.nexilis.service.data.entities

import androidx.room.Entity
import androidx.room.Index

@Entity(
    primaryKeys = ["f_pin"],
    indices = [
        Index(value = ["user_id", "ex_status", "first_name", "email", "msisdn"])
    ]
)
data class Buddy(
    val f_pin: String,
    val upline_pin: String = "",
    val first_name: String,
    val last_name: String = "",
    val image_id: String,
    val user_id: String = f_pin,
    val quote: String = "",
    val connected: String = "0",
    val last_update: String = System.currentTimeMillis().toString(),
    val latitude: String = "0",
    val longitude: String = "0",
    val altitude: String = "0",
    val cell: String = "",
    val last_loc_update: String = "0",
    val type: String = "",
    val empty_2: String = "",
    val timezone: String = "",
    val privacy_flag: String = "",
    val msisdn: String = "",
    val email: String = "",
    val created_date: String = System.currentTimeMillis().toString(),
    val offline_mode: String = "0",
    val network_type: String = "0",
    val ex_block: String = "0",
    val ex_follow: String = "0",
    val ex_offmp: String = "0",
    val ex_follower: String = "0",
    val ex_status: String = "0",
    val auto_quote: String = "",
    val auto_quote_type: String = "",
    val ex_broadcasting: String = "0",
    val indicator_status: String = "0",
    val muted: String = "0",
    val pos_flag: String = "0",
    val shop_code: String = "",
    val shop_name: String = "",
    val android_version: String = "0",
    val device_id: String = "0",
    val extension: String = "0",
    val auto_quote_status: String = "0",
    val connection_speed: String = "0",
    val be_info: String = "",
    val org_id: String = "",
    val org_name: String = "",
    val org_thumb: String = "",
    val card_type: String = "",
    val card_id: String = "",
    val gender: String = "",
    val birthdate: String = "",
    val type_ads: String = "0",
    val type_lp: String = "0",
    val type_post: String = "0",
    val address: String = "",
    val bidang_industri: String = "",
    val visi: String = "",
    val misi: String = "",
    val company_lat: String = "",
    val company_lng: String = "",
    val web: String = "",
    val certificate_image: String = "",
    val official_account: String = "0",
    val user_type: String = "0",
    val real_name: String = "",
    val is_sub_account: String = "0",
    val last_sign: String = "0",
    val android_id: String = "",
    val is_change_profile: String = "0",
    val area: String = "0",
    val is_second_layer: String = "0"
) : MainEntity