Bug 21797: Update two-column templates with Bootstrap grid: Acquisitions part 5
[koha.git] / Koha / Schema / Result / BorrowerDebarment.pm
blob0a603de58a711a24c7b91a73de0bb0afac2e2b16
1 use utf8;
2 package Koha::Schema::Result::BorrowerDebarment;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::BorrowerDebarment
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<borrower_debarments>
20 =cut
22 __PACKAGE__->table("borrower_debarments");
24 =head1 ACCESSORS
26 =head2 borrower_debarment_id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 borrowernumber
34 data_type: 'integer'
35 is_foreign_key: 1
36 is_nullable: 0
38 =head2 expiration
40 data_type: 'date'
41 datetime_undef_if_invalid: 1
42 is_nullable: 1
44 =head2 type
46 data_type: 'enum'
47 default_value: 'MANUAL'
48 extra: {list => ["SUSPENSION","OVERDUES","MANUAL","DISCHARGE"]}
49 is_nullable: 0
51 =head2 comment
53 data_type: 'mediumtext'
54 is_nullable: 1
56 =head2 manager_id
58 data_type: 'integer'
59 is_nullable: 1
61 =head2 created
63 data_type: 'timestamp'
64 datetime_undef_if_invalid: 1
65 default_value: current_timestamp
66 is_nullable: 0
68 =head2 updated
70 data_type: 'timestamp'
71 datetime_undef_if_invalid: 1
72 is_nullable: 1
74 =cut
76 __PACKAGE__->add_columns(
77 "borrower_debarment_id",
78 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
79 "borrowernumber",
80 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
81 "expiration",
82 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
83 "type",
85 data_type => "enum",
86 default_value => "MANUAL",
87 extra => { list => ["SUSPENSION", "OVERDUES", "MANUAL", "DISCHARGE"] },
88 is_nullable => 0,
90 "comment",
91 { data_type => "mediumtext", is_nullable => 1 },
92 "manager_id",
93 { data_type => "integer", is_nullable => 1 },
94 "created",
96 data_type => "timestamp",
97 datetime_undef_if_invalid => 1,
98 default_value => \"current_timestamp",
99 is_nullable => 0,
101 "updated",
103 data_type => "timestamp",
104 datetime_undef_if_invalid => 1,
105 is_nullable => 1,
109 =head1 PRIMARY KEY
111 =over 4
113 =item * L</borrower_debarment_id>
115 =back
117 =cut
119 __PACKAGE__->set_primary_key("borrower_debarment_id");
121 =head1 RELATIONS
123 =head2 borrowernumber
125 Type: belongs_to
127 Related object: L<Koha::Schema::Result::Borrower>
129 =cut
131 __PACKAGE__->belongs_to(
132 "borrowernumber",
133 "Koha::Schema::Result::Borrower",
134 { borrowernumber => "borrowernumber" },
135 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
139 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
140 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:J9J1ReRLqhVasOQXvde2Uw
143 # You can replace this text with custom code or comments, and it will be preserved on regeneration