| 1 | 4 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | |||
| 3 | package Data::OFAC::SDN::Schema::Result::Sdn; | ||
| 4 | |||
| 5 | # Created by DBIx::Class::Schema::Loader | ||
| 6 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | Data::OFAC::SDN::Schema::Result::Sdn | ||
| 11 | |||
| 12 | =cut | ||
| 13 | |||
| 14 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | |||
| 17 | 4 | ▶ | use base 'DBIx::Class::Core'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | |||
| 19 | =head1 COMPONENTS LOADED | ||
| 20 | |||
| 21 | =over 4 | ||
| 22 | |||
| 23 | =item * L<DBIx::Class::PhoneticSearch> | ||
| 24 | |||
| 25 | =item * L<DBIx::Class::Core> | ||
| 26 | |||
| 27 | =back | ||
| 28 | |||
| 29 | =cut | ||
| 30 | |||
| 31 | 4 | __PACKAGE__->load_components( "PhoneticSearch", "Core" ); | |
| 32 | |||
| 33 | =head1 TABLE: C<SDN> | ||
| 34 | |||
| 35 | =cut | ||
| 36 | |||
| 37 | 4 | __PACKAGE__->table("SDN"); | |
| 38 | |||
| 39 | =head1 ACCESSORS | ||
| 40 | |||
| 41 | =head2 ent_num | ||
| 42 | |||
| 43 | data_type: 'numeric' | ||
| 44 | is_nullable: 0 | ||
| 45 | |||
| 46 | =head2 sdn_name | ||
| 47 | |||
| 48 | data_type: 'text' | ||
| 49 | is_nullable: 1 | ||
| 50 | |||
| 51 | =head2 sdn_type | ||
| 52 | |||
| 53 | data_type: 'text' | ||
| 54 | is_nullable: 0 | ||
| 55 | |||
| 56 | =head2 program | ||
| 57 | |||
| 58 | data_type: 'text' | ||
| 59 | is_nullable: 0 | ||
| 60 | |||
| 61 | =head2 title | ||
| 62 | |||
| 63 | data_type: 'text' | ||
| 64 | is_nullable: 1 | ||
| 65 | |||
| 66 | =head2 call_sign | ||
| 67 | |||
| 68 | data_type: 'text' | ||
| 69 | is_nullable: 1 | ||
| 70 | |||
| 71 | =head2 vess_type | ||
| 72 | |||
| 73 | data_type: 'text' | ||
| 74 | is_nullable: 1 | ||
| 75 | |||
| 76 | =head2 tonnage | ||
| 77 | |||
| 78 | data_type: 'text' | ||
| 79 | is_nullable: 1 | ||
| 80 | |||
| 81 | =head2 grt | ||
| 82 | |||
| 83 | data_type: 'text' | ||
| 84 | is_nullable: 1 | ||
| 85 | |||
| 86 | =head2 vess_flag | ||
| 87 | |||
| 88 | data_type: 'text' | ||
| 89 | is_nullable: 1 | ||
| 90 | |||
| 91 | =head2 vess_owner | ||
| 92 | |||
| 93 | data_type: 'text' | ||
| 94 | is_nullable: 1 | ||
| 95 | |||
| 96 | =head2 remarks | ||
| 97 | |||
| 98 | data_type: 'text' | ||
| 99 | is_nullable: 1 | ||
| 100 | |||
| 101 | =cut | ||
| 102 | |||
| 103 | 4 | __PACKAGE__->add_columns( | |
| 104 | "ent_num", | ||
| 105 | { data_type => "numeric", is_nullable => 0 }, | ||
| 106 | "sdn_name", | ||
| 107 | { data_type => "text", is_nullable => 1, phonetic_search => 1 }, | ||
| 108 | "sdn_type", | ||
| 109 | { data_type => "text", is_nullable => 0 }, | ||
| 110 | "program", | ||
| 111 | { data_type => "text", is_nullable => 0 }, | ||
| 112 | "title", | ||
| 113 | { data_type => "text", is_nullable => 1, phonetic_search => 1 }, | ||
| 114 | "call_sign", | ||
| 115 | { data_type => "text", is_nullable => 1 }, | ||
| 116 | "vess_type", | ||
| 117 | { data_type => "text", is_nullable => 1 }, | ||
| 118 | "tonnage", | ||
| 119 | { data_type => "text", is_nullable => 1 }, | ||
| 120 | "grt", | ||
| 121 | { data_type => "text", is_nullable => 1 }, | ||
| 122 | "vess_flag", | ||
| 123 | { data_type => "text", is_nullable => 1 }, | ||
| 124 | "vess_owner", | ||
| 125 | { data_type => "text", is_nullable => 1 }, | ||
| 126 | "remarks", | ||
| 127 | { data_type => "text", is_nullable => 1 }, | ||
| 128 | ); | ||
| 129 | |||
| 130 | =head1 PRIMARY KEY | ||
| 131 | |||
| 132 | =over 4 | ||
| 133 | |||
| 134 | =item * L</ent_num> | ||
| 135 | |||
| 136 | =back | ||
| 137 | |||
| 138 | =cut | ||
| 139 | |||
| 140 | #__PACKAGE__->set_primary_key("ent_num"); | ||
| 141 | |||
| 142 | 4 | __PACKAGE__->resultset_class('DBIx::Class::ResultSet::PhoneticSearch'); | |
| 143 | |||
| 144 | =head1 RELATIONS | ||
| 145 | |||
| 146 | =head2 addresses | ||
| 147 | |||
| 148 | Type: has_many | ||
| 149 | |||
| 150 | Related object: L<Data::OFAC::SDN::Schema::Result::Address> | ||
| 151 | |||
| 152 | =cut | ||
| 153 | |||
| 154 | 4 | __PACKAGE__->has_many( | |
| 155 | "addresses", | ||
| 156 | "Data::OFAC::SDN::Schema::Result::Address", | ||
| 157 | { "foreign.ent_num" => "self.ent_num" }, | ||
| 158 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 159 | ); | ||
| 160 | |||
| 161 | =head2 alts | ||
| 162 | |||
| 163 | Type: has_many | ||
| 164 | |||
| 165 | Related object: L<Data::OFAC::SDN::Schema::Result::Alt> | ||
| 166 | |||
| 167 | =cut | ||
| 168 | |||
| 169 | 4 | __PACKAGE__->has_many( | |
| 170 | "alts", | ||
| 171 | "Data::OFAC::SDN::Schema::Result::Alt", | ||
| 172 | { "foreign.ent_num" => "self.ent_num" }, | ||
| 173 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 174 | ); | ||
| 175 | |||
| 176 | # Created by DBIx::Class::Schema::Loader v0.07037 @ 2013-11-11 16:58:48 | ||
| 177 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xYy/SCgpuUw4u4r/QkpzUw | ||
| 178 | |||
| 179 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 180 | 4 | 1; | |