Interchange6::Schema::Result::Address
The Address class is used to store any kind of address such as billing, delivery, etc along with company and individual names if needed.
Primary key.
Foreign key constraint on "users_id" in Interchange6::Schema::Result::User via "user" relationship.
Address "type" for such things as "billing" or "shipping". Defaults to empty string.
Boolean indicating that address has been archived and so should no longer appear in normal address listings.
First name of person associated with address. Defaults to empty string.
Last name of person associated with address. Defaults to empty string.
Company name associated with address. Defaults to empty string.
First line of address. Defaults to empty string.
Second line of address. Defaults to empty string.
Postal/zip code. Defaults to empty string.
City/town name. Defaults to empty string.
Telephone number. Defaults to empty string.
Foreign key constraint on "states_id" in Interchange6::Schema::Result::State via "state" relationship. NULL values are allowed.
Two character country ISO code. Foreign key constraint on "country_iso_code" in Interchange6::Schema::Result::Country via "country" relationship.
Signed integer priority. We normally order descending. A simple use might be to set default address to 1 and others to 0.
Defaults to 0.
Date and time when this record was created returned as DateTime object. Value is auto-set on insert.
Date and time when this record was last modified returned as DateTime object. Value is auto-set on insert and update.
Type: has_many
Related object: Interchange6::Schema::Result::OrderlinesShipping
Related object: Interchange6::Schema::Result::Order
Type: belongs_to
Related object: Interchange6::Schema::Result::User
Related object: Interchange6::Schema::Result::State
Related object: Interchange6::Schema::Result::Country
Type: many_to_many
Composing rels: "orderlines_shipping" -> orderline
If 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.
To install Interchange6::Schema, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Interchange6::Schema
CPAN shell
perl -MCPAN -e shell install Interchange6::Schema
For more information on module installation, please visit the detailed CPAN module installation guide.