1 package Koha::Schema::Result::BorrowerAttributeType;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base 'DBIx::Class::Core';
14 Koha::Schema::Result::BorrowerAttributeType
18 __PACKAGE__->table("borrower_attribute_types");
52 =head2 password_allowed
58 =head2 staff_searchable
64 =head2 authorised_value_category
70 =head2 display_checkout
86 default_value: (empty string)
92 __PACKAGE__->add_columns(
94 { data_type => "varchar", is_nullable => 0, size => 10 },
96 { data_type => "varchar", is_nullable => 0, size => 255 },
98 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
100 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
102 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
104 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
106 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
107 "authorised_value_category",
108 { data_type => "varchar", is_nullable => 1, size => 10 },
110 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
112 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
114 { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
116 __PACKAGE__->set_primary_key("code");
124 Related object: L<Koha::Schema::Result::Category>
128 __PACKAGE__->belongs_to(
130 "Koha::Schema::Result::Category",
131 { categorycode => "category_code" },
132 { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
135 =head2 borrower_attributes
139 Related object: L<Koha::Schema::Result::BorrowerAttribute>
143 __PACKAGE__->has_many(
144 "borrower_attributes",
145 "Koha::Schema::Result::BorrowerAttribute",
146 { "foreign.code" => "self.code" },
147 { cascade_copy => 0, cascade_delete => 0 },
151 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
152 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EpdavGdH3uR/eaNLJIoHCg
155 # You can replace this text with custom content, and it will be preserved on regeneration