2 package Koha::Schema::Result::Patroncard;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Patroncard
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<patroncards>
22 __PACKAGE__->table("patroncards");
47 data_type: 'timestamp'
48 datetime_undef_if_invalid: 1
49 default_value: current_timestamp
54 __PACKAGE__->add_columns(
56 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
58 { data_type => "varchar", default_value => 1, is_nullable => 0, size => 10 },
60 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
63 data_type => "timestamp",
64 datetime_undef_if_invalid => 1,
65 default_value => \"current_timestamp",
80 __PACKAGE__->set_primary_key("cardid");
88 Related object: L<Koha::Schema::Result::Borrower>
92 __PACKAGE__->belongs_to(
94 "Koha::Schema::Result::Borrower",
95 { borrowernumber => "borrowernumber" },
96 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
100 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
101 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZDpN4iw7+y9YP7Dc+ou8lQ
104 # You can replace this text with custom content, and it will be preserved on regeneration