Bug 8798: DBIx::Class base classes for all Koha tables
[koha.git] / Koha / Schema / Result / Ethnicity.pm
1 package Koha::Schema::Result::Ethnicity;
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::Ethnicity
15
16 =cut
17
18 __PACKAGE__->table("ethnicity");
19
20 =head1 ACCESSORS
21
22 =head2 code
23
24   data_type: 'varchar'
25   default_value: (empty string)
26   is_nullable: 0
27   size: 10
28
29 =head2 name
30
31   data_type: 'varchar'
32   is_nullable: 1
33   size: 255
34
35 =cut
36
37 __PACKAGE__->add_columns(
38   "code",
39   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
40   "name",
41   { data_type => "varchar", is_nullable => 1, size => 255 },
42 );
43 __PACKAGE__->set_primary_key("code");
44
45
46 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
47 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:H+zE5eEx/ClCKhvOgCCQzg
48
49
50 # You can replace this text with custom content, and it will be preserved on regeneration
51 1;