Bug 8798: (follow-up) update schema files
[koha.git] / Koha / Schema / Result / City.pm
1 package Koha::Schema::Result::City;
2
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6 use strict;
7 use warnings;
8
9 use base 'DBIx::Class::Core';
10
11
12 =head1 NAME
13
14 Koha::Schema::Result::City
15
16 =cut
17
18 __PACKAGE__->table("cities");
19
20 =head1 ACCESSORS
21
22 =head2 cityid
23
24   data_type: 'integer'
25   is_auto_increment: 1
26   is_nullable: 0
27
28 =head2 city_name
29
30   data_type: 'varchar'
31   default_value: (empty string)
32   is_nullable: 0
33   size: 100
34
35 =head2 city_state
36
37   data_type: 'varchar'
38   is_nullable: 1
39   size: 100
40
41 =head2 city_country
42
43   data_type: 'varchar'
44   is_nullable: 1
45   size: 100
46
47 =head2 city_zipcode
48
49   data_type: 'varchar'
50   is_nullable: 1
51   size: 20
52
53 =cut
54
55 __PACKAGE__->add_columns(
56   "cityid",
57   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
58   "city_name",
59   { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
60   "city_state",
61   { data_type => "varchar", is_nullable => 1, size => 100 },
62   "city_country",
63   { data_type => "varchar", is_nullable => 1, size => 100 },
64   "city_zipcode",
65   { data_type => "varchar", is_nullable => 1, size => 20 },
66 );
67 __PACKAGE__->set_primary_key("cityid");
68
69
70 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
71 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ziAiH8vvSS8OzKHZBcpUow
72
73
74 # You can replace this text with custom content, and it will be preserved on regeneration
75 1;