package com.aistudio.bonjuteri.jwlry.model import com.google.firebase.Timestamp import com.google.firebase.firestore.DocumentId import com.google.firebase.firestore.IgnoreExtraProperties import com.google.firebase.firestore.ServerTimestamp @IgnoreExtraProperties data class Address( @DocumentId val id: String = "", val title: String = "", // Ev, İş, vb. val fullName: String = "", val phone: String = "", val city: String = "", // İl val district: String = "", // İlçe val neighborhood: String = "", // Mahalle val fullAddress: String = "", // Açık adres val postalCode: String = "", val isDefault: Boolean = false, @ServerTimestamp val createdAt: Timestamp? = null ) { val fullDisplayAddress: String get() = "$neighborhood $fullAddress, $district / $city" }