]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/actor.pm
0b3d9b346876972be604327aa3642abeca3499d5
[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::usr_note;
25 use base qw/actor/;
26
27 __PACKAGE__->table( 'actor_usr_note' );
28 __PACKAGE__->columns( Primary => qw/id/ );
29 __PACKAGE__->columns( Essential => qw/usr title creator create_date value pub/ );
30
31 #-------------------------------------------------------------------------------
32 package actor::workstation;
33 use base qw/actor/;
34
35 __PACKAGE__->table( 'actor_workstation' );
36 __PACKAGE__->columns( Primary => qw/id/);
37 __PACKAGE__->columns( Essential => qw/name owning_lib/);
38
39 #-------------------------------------------------------------------------------
40 package actor::user_standing_penalty;
41 use base qw/actor/;
42
43 __PACKAGE__->table( 'actor_user_standing_penalty' );
44 __PACKAGE__->columns( Primary => qw/id/);
45 __PACKAGE__->columns( Essential => qw/usr penalty_type/);
46
47 #-------------------------------------------------------------------------------
48 package actor::user_setting;
49 use base qw/actor/;
50
51 __PACKAGE__->table( 'actor_user_setting' );
52 __PACKAGE__->columns( Primary => qw/id/);
53 __PACKAGE__->columns( Essential => qw/usr name value/);
54
55 #-------------------------------------------------------------------------------
56 package actor::profile;
57 use base qw/actor/;
58
59 __PACKAGE__->table( 'actor_profile' );
60 __PACKAGE__->columns( Primary => qw/id/);
61 __PACKAGE__->columns( Essential => qw/name/);
62
63 #-------------------------------------------------------------------------------
64 package actor::org_unit_type;
65 use base qw/actor/;
66
67 __PACKAGE__->table( 'actor_org_unit_type' );
68 __PACKAGE__->columns( Primary => qw/id/);
69 __PACKAGE__->columns( Essential => qw/name opac_label depth parent can_have_vols can_have_users/);
70
71 #-------------------------------------------------------------------------------
72 package actor::org_unit;
73 use base qw/actor/;
74
75 __PACKAGE__->table( 'actor_org_unit' );
76 __PACKAGE__->columns( Primary => qw/id/);
77 __PACKAGE__->columns( Essential => qw/parent_ou ou_type mailing_address billing_address
78                                 ill_address holds_address shortname name/);
79
80 #-------------------------------------------------------------------------------
81 package actor::org_unit_setting;
82 use base qw/actor/;
83
84 __PACKAGE__->table( 'actor_org_unit_setting' );
85 __PACKAGE__->columns( Primary => qw/id/);
86 __PACKAGE__->columns( Essential => qw/org_unit name value/);
87
88
89 #-------------------------------------------------------------------------------
90 package actor::stat_cat;
91 use base qw/actor/;
92
93 __PACKAGE__->table( 'actor_stat_cat' );
94 __PACKAGE__->columns( Primary => qw/id/ );
95 __PACKAGE__->columns( Essential => qw/owner name opac_visible/ );
96
97 #-------------------------------------------------------------------------------
98 package actor::stat_cat_entry;
99 use base qw/actor/;
100
101 __PACKAGE__->table( 'actor_stat_cat_entry' );
102 __PACKAGE__->columns( Primary => qw/id/ );
103 __PACKAGE__->columns( Essential => qw/stat_cat owner value/ );
104
105 #-------------------------------------------------------------------------------
106 package actor::stat_cat_entry_user_map;
107 use base qw/actor/;
108
109 __PACKAGE__->table( 'actor_stat_cat_entry_usr_map' );
110 __PACKAGE__->columns( Primary => qw/id/ );
111 __PACKAGE__->columns( Essential => qw/stat_cat stat_cat_entry target_usr/ );
112
113 #-------------------------------------------------------------------------------
114 package actor::card;
115 use base qw/actor/;
116
117 __PACKAGE__->table( 'actor_card' );
118 __PACKAGE__->columns( Primary => qw/id/ );
119 __PACKAGE__->columns( Essential => qw/usr barcode active/ );
120
121 #-------------------------------------------------------------------------------
122 package actor::user_access_entry;
123 use base qw/actor/;
124 #-------------------------------------------------------------------------------
125 package actor::perm_group;
126 use base qw/actor/;
127 #-------------------------------------------------------------------------------
128 package actor::permission;
129 use base qw/actor/;
130 #-------------------------------------------------------------------------------
131 package actor::perm_group_permission_map;
132 use base qw/actor/;
133 #-------------------------------------------------------------------------------
134 package actor::perm_group_user_map;
135 use base qw/actor/;
136 #-------------------------------------------------------------------------------
137 package actor::user_address;
138 use base qw/actor/;
139
140 __PACKAGE__->table( 'actor_usr_address' );
141 __PACKAGE__->columns( Primary => qw/id/ );
142 __PACKAGE__->columns( Essential => qw/valid address_type usr street1 street2
143                                       city county state country post_code
144                                       within_city_limits/ );
145
146 #-------------------------------------------------------------------------------
147 package actor::org_address;
148 use base qw/actor/;
149
150 __PACKAGE__->table( 'actor_org_address' );
151 __PACKAGE__->columns( Primary => qw/id/ );
152 __PACKAGE__->columns( Essential => qw/valid address_type org_unit street1 street2
153                                       city county state country post_code/ );
154
155 #-------------------------------------------------------------------------------
156 package actor::profile;
157 use base qw/actor/;
158
159 __PACKAGE__->table( 'actor_profile' );
160 __PACKAGE__->columns( Primary => qw/id/ );
161 __PACKAGE__->columns( Essential => qw/name/ );
162
163 #-------------------------------------------------------------------------------
164 1;
165