|
NAMEInterchange6::Schema::Result::AddressDESCRIPTIONThe Address class is used to store any kind of address such as billing, delivery, etc along with company and individual names if needed.ACCESSORSaddresses_idPrimary key.users_idForeign key constraint on "users_id" in Interchange6::Schema::Result::User via "user" relationship.typeAddress "type" for such things as "billing" or "shipping". Defaults to empty string.archivedBoolean indicating that address has been archived and so should no longer appear in normal address listings.first_nameFirst name of person associated with address. Defaults to empty string.last_nameLast name of person associated with address. Defaults to empty string.companyCompany name associated with address. Defaults to empty string.addressFirst line of address. Defaults to empty string.address_2Second line of address. Defaults to empty string.postal_codePostal/zip code. Defaults to empty string.cityCity/town name. Defaults to empty string.phoneTelephone number. Defaults to empty string.states_idForeign key constraint on "states_id" in Interchange6::Schema::Result::State via "state" relationship. NULL values are allowed.country_iso_codeTwo character country ISO code. Foreign key constraint on "country_iso_code" in Interchange6::Schema::Result::Country via "country" relationship.prioritySigned integer priority. We normally order descending. A simple use might be to set default address to 1 and others to 0.Defaults to 0. createdDate and time when this record was created returned as DateTime object. Value is auto-set on insert.last_modifiedDate and time when this record was last modified returned as DateTime object. Value is auto-set on insert and update.RELATIONSorderlines_shippingType: has_manyRelated object: Interchange6::Schema::Result::OrderlinesShipping ordersType: has_manyRelated object: Interchange6::Schema::Result::Order userType: belongs_toRelated object: Interchange6::Schema::Result::User stateType: belongs_toRelated object: Interchange6::Schema::Result::State countryType: belongs_toRelated object: Interchange6::Schema::Result::Country orderlinesType: many_to_manyComposing rels: "orderlines_shipping" -> orderline METHODSdeleteIf an address cannot be deleted due to foreign key constraints (perhaps it has "orders" or "orderlines_shipping") then instead of deleting the row set "archived" to true.
Visit the GSP FreeBSD Man Page Interface. |