1 package Koha::Schema::Result::Patroncard;
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::Patroncard
18 __PACKAGE__->table("patroncards");
43 data_type: 'timestamp'
44 default_value: current_timestamp
49 __PACKAGE__->add_columns(
51 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
53 { data_type => "varchar", default_value => 1, is_nullable => 0, size => 10 },
55 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
58 data_type => "timestamp",
59 default_value => \"current_timestamp",
63 __PACKAGE__->set_primary_key("cardid");
71 Related object: L<Koha::Schema::Result::Borrower>
75 __PACKAGE__->belongs_to(
77 "Koha::Schema::Result::Borrower",
78 { borrowernumber => "borrowernumber" },
79 { on_delete => "CASCADE", on_update => "CASCADE" },
83 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
84 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:b/bNxn2Ca/bwRUjZjkoYBg
87 # You can replace this text with custom content, and it will be preserved on regeneration