Bug 37601: DBIC schema update
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
1c82782759
commit
40d9f2cf18
1 changed files with 50 additions and 2 deletions
|
@ -82,6 +82,33 @@ the start date of the booking
|
||||||
|
|
||||||
the end date of the booking
|
the end date of the booking
|
||||||
|
|
||||||
|
=head2 creation_date
|
||||||
|
|
||||||
|
data_type: 'timestamp'
|
||||||
|
datetime_undef_if_invalid: 1
|
||||||
|
default_value: current_timestamp
|
||||||
|
is_nullable: 0
|
||||||
|
|
||||||
|
the timestamp for when a booking was created
|
||||||
|
|
||||||
|
=head2 modification_date
|
||||||
|
|
||||||
|
data_type: 'timestamp'
|
||||||
|
datetime_undef_if_invalid: 1
|
||||||
|
default_value: current_timestamp
|
||||||
|
is_nullable: 0
|
||||||
|
|
||||||
|
the timestamp for when a booking has been updated
|
||||||
|
|
||||||
|
=head2 status
|
||||||
|
|
||||||
|
data_type: 'enum'
|
||||||
|
default_value: 'created'
|
||||||
|
extra: {list => ["created","cancelled"]}
|
||||||
|
is_nullable: 0
|
||||||
|
|
||||||
|
current status of the booking
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
__PACKAGE__->add_columns(
|
__PACKAGE__->add_columns(
|
||||||
|
@ -117,6 +144,27 @@ __PACKAGE__->add_columns(
|
||||||
datetime_undef_if_invalid => 1,
|
datetime_undef_if_invalid => 1,
|
||||||
is_nullable => 1,
|
is_nullable => 1,
|
||||||
},
|
},
|
||||||
|
"creation_date",
|
||||||
|
{
|
||||||
|
data_type => "timestamp",
|
||||||
|
datetime_undef_if_invalid => 1,
|
||||||
|
default_value => \"current_timestamp",
|
||||||
|
is_nullable => 0,
|
||||||
|
},
|
||||||
|
"modification_date",
|
||||||
|
{
|
||||||
|
data_type => "timestamp",
|
||||||
|
datetime_undef_if_invalid => 1,
|
||||||
|
default_value => \"current_timestamp",
|
||||||
|
is_nullable => 0,
|
||||||
|
},
|
||||||
|
"status",
|
||||||
|
{
|
||||||
|
data_type => "enum",
|
||||||
|
default_value => "created",
|
||||||
|
extra => { list => ["created", "cancelled"] },
|
||||||
|
is_nullable => 0,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
=head1 PRIMARY KEY
|
=head1 PRIMARY KEY
|
||||||
|
@ -199,8 +247,8 @@ __PACKAGE__->belongs_to(
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-03 13:13:25
|
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-09-17 10:13:03
|
||||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pgq1xPy2zo3pdkJb801djA
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3v9+L1G6GK0Um3fF0t251w
|
||||||
|
|
||||||
|
|
||||||
# You can replace this text with custom code or comments, and it will be preserved on regeneration
|
# You can replace this text with custom code or comments, and it will be preserved on regeneration
|
||||||
|
|
Loading…
Reference in a new issue