Bug 16829: DBIx update
[koha.git] / Koha / Schema / Result / Accountoffset.pm
blobe9d8c2fdb366d52f3a395ff84ade39eea1dc0154
1 use utf8;
2 package Koha::Schema::Result::Accountoffset;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Accountoffset
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<accountoffsets>
20 =cut
22 __PACKAGE__->table("accountoffsets");
24 =head1 ACCESSORS
26 =head2 borrowernumber
28 data_type: 'integer'
29 default_value: 0
30 is_foreign_key: 1
31 is_nullable: 0
33 =head2 accountno
35 data_type: 'smallint'
36 default_value: 0
37 is_nullable: 0
39 =head2 offsetaccount
41 data_type: 'smallint'
42 default_value: 0
43 is_nullable: 0
45 =head2 offsetamount
47 data_type: 'decimal'
48 is_nullable: 1
49 size: [28,6]
51 =head2 timestamp
53 data_type: 'timestamp'
54 datetime_undef_if_invalid: 1
55 default_value: current_timestamp
56 is_nullable: 0
58 =cut
60 __PACKAGE__->add_columns(
61 "borrowernumber",
63 data_type => "integer",
64 default_value => 0,
65 is_foreign_key => 1,
66 is_nullable => 0,
68 "accountno",
69 { data_type => "smallint", default_value => 0, is_nullable => 0 },
70 "offsetaccount",
71 { data_type => "smallint", default_value => 0, is_nullable => 0 },
72 "offsetamount",
73 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
74 "timestamp",
76 data_type => "timestamp",
77 datetime_undef_if_invalid => 1,
78 default_value => \"current_timestamp",
79 is_nullable => 0,
83 =head1 RELATIONS
85 =head2 borrowernumber
87 Type: belongs_to
89 Related object: L<Koha::Schema::Result::Borrower>
91 =cut
93 __PACKAGE__->belongs_to(
94 "borrowernumber",
95 "Koha::Schema::Result::Borrower",
96 { borrowernumber => "borrowernumber" },
97 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
101 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
102 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OTfcUiJCPb5aU/gjqAb/bA
105 # You can replace this text with custom content, and it will be preserved on regeneration