1 package OpenILS::Application::Storage::CDBI::booking;
4 #-------------------------------------------------------------------------------
6 use base qw/OpenILS::Application::Storage::CDBI/;
7 #-------------------------------------------------------------------------------
9 package booking::resource_type;
11 __PACKAGE__->table('booking_resource_type');
12 __PACKAGE__->columns(Primary => 'id');
13 __PACKAGE__->columns(Essential => qw/name fine_interval fine_amount
14 max_fine owner catalog_item record transferable elbow_room/);
16 #-------------------------------------------------------------------------------
18 package booking::resource;
20 __PACKAGE__->table('booking_resource');
21 __PACKAGE__->columns(Primary => 'id');
22 __PACKAGE__->columns(Essential => qw/owner type overbook barcode deposit
23 deposit_amount user_fee/);
25 #-------------------------------------------------------------------------------
27 package booking::reservation;
29 __PACKAGE__->table('booking_reservation');
30 __PACKAGE__->columns(Primary => 'id');
31 __PACKAGE__->columns(Essential => qw/xact_start usr current_resource
32 fine_amount max_fine fine_interval xact_finish
33 capture_staff pickup_lib request_time start_time end_time
34 capture_time cancel_time pickup_time return_time
35 booking_interval target_resource_type target_resource
36 current_resource request_lib/);
38 #-------------------------------------------------------------------------------
40 package booking::resource_attr_map;
42 __PACKAGE__->table('booking_resource_attr_map');
43 __PACKAGE__->columns(Primary => 'id');
44 __PACKAGE__->columns(Essential => qw/resource resource_attr value/);
46 #-------------------------------------------------------------------------------
48 package booking::reservation_attr_value_map;
50 __PACKAGE__->table('booking_reservation_attr_value_map');
51 __PACKAGE__->columns(Primary => 'id');
52 __PACKAGE__->columns(Essential => qw/reservation attr_value/);
54 #-------------------------------------------------------------------------------