]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/CDBI/asset.pm
LP#1655149: Badges need CDBI support for location groups
[Evergreen.git] / Open-ILS / src / perlmods / lib / OpenILS / Application / Storage / CDBI / asset.pm
1 package OpenILS::Application::Storage::CDBI::asset;
2 our $VERSION = 1;
3
4 #-------------------------------------------------------------------------------
5 package asset;
6 use base qw/OpenILS::Application::Storage::CDBI/;
7 #-------------------------------------------------------------------------------
8 package asset::copy_location;
9 use base qw/asset/;
10
11 __PACKAGE__->table( 'asset_copy_location' );
12 __PACKAGE__->columns( Primary => qw/id/ );
13 __PACKAGE__->columns( Essential => qw/name owning_lib holdable hold_verify opac_visible circulate label_prefix label_suffix checkin_alert deleted/ );
14
15 #-------------------------------------------------------------------------------
16 package asset::copy_location_group;
17 use base qw/asset/;
18
19 __PACKAGE__->table( 'asset_copy_location_group' );
20 __PACKAGE__->columns( Primary => qw/id/ );
21 __PACKAGE__->columns( Essential => qw/name owner pos top opac_visible/ );
22
23 #-------------------------------------------------------------------------------
24 package asset::copy_location_order;
25 use base qw/asset/;
26
27 __PACKAGE__->table( 'asset_copy_location_order' );
28 __PACKAGE__->columns( Primary => qw/id/ );
29 __PACKAGE__->columns( Essential => qw/location org position/ );
30
31 #-------------------------------------------------------------------------------
32 package asset::call_number_suffix;
33 use base qw/asset/;
34
35 __PACKAGE__->table( 'asset_call_number_suffix' );
36 __PACKAGE__->columns( Primary => qw/id/ );
37 __PACKAGE__->columns( Essential => qw/owning_lib label label_sortkey/ );
38
39 #-------------------------------------------------------------------------------
40 package asset::call_number_prefix;
41 use base qw/asset/;
42
43 __PACKAGE__->table( 'asset_call_number_prefix' );
44 __PACKAGE__->columns( Primary => qw/id/ );
45 __PACKAGE__->columns( Essential => qw/owning_lib label label_sortkey/ );
46
47 #-------------------------------------------------------------------------------
48 package asset::call_number_class;
49 use base qw/asset/;
50
51 __PACKAGE__->table( 'asset_call_number_class' );
52 __PACKAGE__->columns( Primary => qw/id/ );
53 __PACKAGE__->columns( Essential => qw/name normalizer field/ );
54
55 #-------------------------------------------------------------------------------
56 package asset::call_number;
57 use base qw/asset/;
58
59 __PACKAGE__->table( 'asset_call_number' );
60 __PACKAGE__->columns( Primary => qw/id/ );
61 __PACKAGE__->columns( Essential => qw/record label creator create_date editor prefix suffix
62                    edit_date record label owning_lib deleted label_class label_sortkey/ );
63
64 #-------------------------------------------------------------------------------
65 package asset::call_number_note;
66 use base qw/asset/;
67
68 __PACKAGE__->table( 'asset_call_number_note' );
69 __PACKAGE__->columns( Primary => qw/id/ );
70 __PACKAGE__->columns( Essential => qw/call_number title creator create_date value pub/ );
71
72 #-------------------------------------------------------------------------------
73 package asset::copy;
74 use base qw/asset/;
75
76 __PACKAGE__->table( 'asset_copy' );
77 __PACKAGE__->columns( Primary => qw/id/ );
78 __PACKAGE__->columns( Essential => qw/call_number barcode creator create_date editor
79                    edit_date copy_number status loan_duration circ_lib dummy_isbn
80                    fine_level circulate deposit price ref opac_visible
81                    circ_as_type circ_modifier deposit_amount location mint_condition
82                    holdable dummy_title dummy_author deleted alert_message
83                    age_protect floating cost status_changed_time active_date/ );
84
85 #-------------------------------------------------------------------------------
86 package asset::copy_part_map;
87 use base qw/asset/;
88
89 __PACKAGE__->table( 'asset_copy_part_map' );
90 __PACKAGE__->columns( Primary => qw/id/ );
91 __PACKAGE__->columns( Essential => qw/target_copy part/);
92
93 #-------------------------------------------------------------------------------
94 package asset::stat_cat;
95 use base qw/asset/;
96
97 __PACKAGE__->table( 'asset_stat_cat' );
98 __PACKAGE__->columns( Primary => qw/id/ );
99 __PACKAGE__->columns( Essential => qw/owner name opac_visible sip_field sip_format required checkout_archive/ );
100
101 #-------------------------------------------------------------------------------
102 package asset::stat_cat_entry;
103 use base qw/asset/;
104
105 __PACKAGE__->table( 'asset_stat_cat_entry' );
106 __PACKAGE__->columns( Primary => qw/id/ );
107 __PACKAGE__->columns( Essential => qw/stat_cat owner value/ );
108
109 #-------------------------------------------------------------------------------
110 package asset::stat_cat_entry_copy_map;
111 use base qw/asset/;
112
113 __PACKAGE__->table( 'asset_stat_cat_entry_copy_map' );
114 __PACKAGE__->columns( Primary => qw/id/ );
115 __PACKAGE__->columns( Essential => qw/stat_cat stat_cat_entry owning_copy/ );
116
117 #-------------------------------------------------------------------------------
118 package asset::copy_note;
119 use base qw/asset/;
120
121 __PACKAGE__->table( 'asset_copy_note' );
122 __PACKAGE__->columns( Primary => qw/id/ );
123 __PACKAGE__->columns( Essential => qw/owning_copy title creator create_date value pub/ );
124
125 #-------------------------------------------------------------------------------
126
127
128 1;
129