NAME

Interchange6::Schema::Result::State

DESCRIPTION

ISO 3166-2 codes for sub_country identification "states"

ACCESSORS

states_id

Primary key.

scope

Scope. Defaults to empty string.

country_iso_code

FK on "country_iso_code" in Interchange6::Schema::Result::Country.

state_iso_code

State ISO code, e.g.: NY.

name

Full name of state/province, e.g.: New York.

Defaults to empty string.

priority

Display sort order. Defaults to 0.

active

Whether state is an active shipping destination. Defaults to 1 (true).

UNIQUE CONSTRAINT

states_state_country

RELATIONS

country

Type: belongs_to

Related object: Interchange6::Schema::Result::Country

zone_states

Type: has_many

Related object Interchange6::Schema::Result::ZoneState

zones

Type: many_to_many

Composing rels: "zone_states" -> zone