]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/actor.pm
adding "within_city_limits" bool column
[Evergreen.git] / Open-ILS / src / perlmods / OpenILS / Application / Storage / CDBI / actor.pm
1 package OpenILS::Application::Storage::CDBI::actor;
2 our $VERSION = 1;
3
4 #-------------------------------------------------------------------------------
5 package actor;
6 use base qw/OpenILS::Application::Storage::CDBI/;
7 #-------------------------------------------------------------------------------
8 package actor::user;
9 use base qw/actor/;
10
11 __PACKAGE__->table( 'actor_usr' );
12 __PACKAGE__->columns( Primary => qw/id/ );
13 __PACKAGE__->columns( Essential => qw/usrname email first_given_name
14                                 second_given_name family_name billing_address
15                                 claims_returned_count home_ou dob
16                                 active master_account ident_type ident_value
17                                 ident_type2 ident_value2 net_access_level
18                                 photo_url create_date expire_date credit_forward_balance
19                                 super_user usrgroup passwd card last_xact_id
20                                 standing barred profile prefix suffix alert_message
21                                 day_phone evening_phone other_phone mailing_address/ );
22
23 #-------------------------------------------------------------------------------
24 package actor::workstation;
25 use base qw/actor/;
26
27 __PACKAGE__->table( 'actor_workstation' );
28 __PACKAGE__->columns( Primary => qw/id/);
29 __PACKAGE__->columns( Essential => qw/name owning_lib/);
30
31 #-------------------------------------------------------------------------------
32 package actor::user_standing_penalty;
33 use base qw/actor/;
34
35 __PACKAGE__->table( 'actor_user_standing_penalty' );
36 __PACKAGE__->columns( Primary => qw/id/);
37 __PACKAGE__->columns( Essential => qw/usr penalty_type/);
38
39 #-------------------------------------------------------------------------------
40 package actor::user_setting;
41 use base qw/actor/;
42
43 __PACKAGE__->table( 'actor_user_setting' );
44 __PACKAGE__->columns( Primary => qw/id/);
45 __PACKAGE__->columns( Essential => qw/usr name value/);
46
47 #-------------------------------------------------------------------------------
48 package actor::profile;
49 use base qw/actor/;
50
51 __PACKAGE__->table( 'actor_profile' );
52 __PACKAGE__->columns( Primary => qw/id/);
53 __PACKAGE__->columns( Essential => qw/name/);
54
55 #-------------------------------------------------------------------------------
56 package actor::org_unit_type;
57 use base qw/actor/;
58
59 __PACKAGE__->table( 'actor_org_unit_type' );
60 __PACKAGE__->columns( Primary => qw/id/);
61 __PACKAGE__->columns( Essential => qw/name opac_label depth parent can_have_vols can_have_users/);
62
63 #-------------------------------------------------------------------------------
64 package actor::org_unit;
65 use base qw/actor/;
66
67 __PACKAGE__->table( 'actor_org_unit' );
68 __PACKAGE__->columns( Primary => qw/id/);
69 __PACKAGE__->columns( Essential => qw/parent_ou ou_type mailing_address billing_address
70                                 ill_address holds_address shortname name/);
71
72 #-------------------------------------------------------------------------------
73 package actor::org_unit_setting;
74 use base qw/actor/;
75
76 __PACKAGE__->table( 'actor_org_unit_setting' );
77 __PACKAGE__->columns( Primary => qw/id/);
78 __PACKAGE__->columns( Essential => qw/org_unit name value/);
79
80
81 #-------------------------------------------------------------------------------
82 package actor::stat_cat;
83 use base qw/actor/;
84
85 __PACKAGE__->table( 'actor_stat_cat' );
86 __PACKAGE__->columns( Primary => qw/id/ );
87 __PACKAGE__->columns( Essential => qw/owner name opac_visible/ );
88
89 #-------------------------------------------------------------------------------
90 package actor::stat_cat_entry;
91 use base qw/actor/;
92
93 __PACKAGE__->table( 'actor_stat_cat_entry' );
94 __PACKAGE__->columns( Primary => qw/id/ );
95 __PACKAGE__->columns( Essential => qw/stat_cat owner value/ );
96
97 #-------------------------------------------------------------------------------
98 package actor::stat_cat_entry_user_map;
99 use base qw/actor/;
100
101 __PACKAGE__->table( 'actor_stat_cat_entry_usr_map' );
102 __PACKAGE__->columns( Primary => qw/id/ );
103 __PACKAGE__->columns( Essential => qw/stat_cat stat_cat_entry target_usr/ );
104
105 #-------------------------------------------------------------------------------
106 package actor::card;
107 use base qw/actor/;
108
109 __PACKAGE__->table( 'actor_card' );
110 __PACKAGE__->columns( Primary => qw/id/ );
111 __PACKAGE__->columns( Essential => qw/usr barcode active/ );
112
113 #-------------------------------------------------------------------------------
114 package actor::user_access_entry;
115 use base qw/actor/;
116 #-------------------------------------------------------------------------------
117 package actor::perm_group;
118 use base qw/actor/;
119 #-------------------------------------------------------------------------------
120 package actor::permission;
121 use base qw/actor/;
122 #-------------------------------------------------------------------------------
123 package actor::perm_group_permission_map;
124 use base qw/actor/;
125 #-------------------------------------------------------------------------------
126 package actor::perm_group_user_map;
127 use base qw/actor/;
128 #-------------------------------------------------------------------------------
129 package actor::user_address;
130 use base qw/actor/;
131
132 __PACKAGE__->table( 'actor_usr_address' );
133 __PACKAGE__->columns( Primary => qw/id/ );
134 __PACKAGE__->columns( Essential => qw/valid address_type usr street1 street2
135                                       city county state country post_code
136                                       within_city_limits/ );
137
138 #-------------------------------------------------------------------------------
139 package actor::org_address;
140 use base qw/actor/;
141
142 __PACKAGE__->table( 'actor_org_address' );
143 __PACKAGE__->columns( Primary => qw/id/ );
144 __PACKAGE__->columns( Essential => qw/valid address_type org_unit street1 street2
145                                       city county state country post_code/ );
146
147 #-------------------------------------------------------------------------------
148 package actor::profile;
149 use base qw/actor/;
150
151 __PACKAGE__->table( 'actor_profile' );
152 __PACKAGE__->columns( Primary => qw/id/ );
153 __PACKAGE__->columns( Essential => qw/name/ );
154
155 #-------------------------------------------------------------------------------
156 1;
157