Lines 49-60
expiration date of the restriction
Link Here
|
49 |
|
49 |
|
50 |
=head2 type |
50 |
=head2 type |
51 |
|
51 |
|
52 |
data_type: 'enum' |
52 |
data_type: 'varchar' |
53 |
default_value: 'MANUAL' |
53 |
is_foreign_key: 1 |
54 |
extra: {list => ["SUSPENSION","OVERDUES","MANUAL","DISCHARGE"]} |
|
|
55 |
is_nullable: 0 |
54 |
is_nullable: 0 |
|
|
55 |
size: 50 |
56 |
|
56 |
|
57 |
type of restriction |
57 |
type of restriction, FK to debarment_types.code |
58 |
|
58 |
|
59 |
=head2 comment |
59 |
=head2 comment |
60 |
|
60 |
|
Lines 97-108
__PACKAGE__->add_columns(
Link Here
|
97 |
"expiration", |
97 |
"expiration", |
98 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
98 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
99 |
"type", |
99 |
"type", |
100 |
{ |
100 |
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 50 }, |
101 |
data_type => "enum", |
|
|
102 |
default_value => "MANUAL", |
103 |
extra => { list => ["SUSPENSION", "OVERDUES", "MANUAL", "DISCHARGE"] }, |
104 |
is_nullable => 0, |
105 |
}, |
106 |
"comment", |
101 |
"comment", |
107 |
{ data_type => "mediumtext", is_nullable => 1 }, |
102 |
{ data_type => "mediumtext", is_nullable => 1 }, |
108 |
"manager_id", |
103 |
"manager_id", |
Lines 151-159
__PACKAGE__->belongs_to(
Link Here
|
151 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
146 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
152 |
); |
147 |
); |
153 |
|
148 |
|
|
|
149 |
=head2 type |
150 |
|
151 |
Type: belongs_to |
152 |
|
153 |
Related object: L<Koha::Schema::Result::DebarmentType> |
154 |
|
155 |
=cut |
156 |
|
157 |
__PACKAGE__->belongs_to( |
158 |
"type", |
159 |
"Koha::Schema::Result::DebarmentType", |
160 |
{ code => "type" }, |
161 |
{ is_deferrable => 1, on_delete => "NO ACTION", on_update => "CASCADE" }, |
162 |
); |
163 |
|
154 |
|
164 |
|
155 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 |
165 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-05-04 11:05:19 |
156 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vQL2xYGB5GI//2l4FdIR9w |
166 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bxRDwUTv9cZVpDfNDatosQ |
157 |
|
167 |
|
158 |
|
168 |
|
159 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
169 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |