Skip to content

Address Model

Source: pharmanet/lib/core/models/address_model.dart

Address — @freezed

Field Type Description
id String UUID
userId String FK to profiles
fullName String Recipient name
phoneNumber String Contact phone
addressLine1 String Street address
addressLine2 String? Apt/suite/landmark
city String City
state String? Region/state
postalCode String? Postal code
country String Default: Ethiopia
isDefault bool Default shipping address
type String shipping, billing
createdAt DateTime? Creation timestamp
updatedAt DateTime? Last update