The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Interchange6::Schema::Result::State

DESCRIPTION

ISO 3166-2 codes for sub_country identification "states"

scope: Internal sorting field.

country_iso_code: Two letter country code such as 'SI' = Slovenia.

state_iso_code: Alpha state code such as 'NY' = New York.

name: Full state name.

priority: Display sorting.

active: Is this state a shipping destination? Default is true.

ACCESSORS

states_id

  data_type: 'integer'
  is_auto_increment: 1
  is_nullable: 0
  primary key

scope

  data_type: 'varchar'
  default_value: (empty string)
  is_nullable: 0
  size: 32

country_iso_code

  data_type: 'char'
  is_foreign_key: 1
  is_nullable: 0
  size: 2

state_iso_code

  data_type: 'varchar'
  default_value: (empty string)
  is_nullable: 0
  size: 6

name

  data_type: 'varchar'
  default_value: (empty string)
  is_nullable: 0
  size: 255

priority

  data_type: 'integer'
  default_value: 0
  is_nullable: 0

active

  data_type: 'boolean'
  default_value: 1
  is_nullable: 0

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