]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/actor.pm
fleshed out "actor.usr" interface, and stream behavior adjustment
[working/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/usrid usrname email first_given_name
14                                 second_given_name family_name address
15                                 home_ou gender dob active master_account
16                                 ident_type ident_value super_user usrgroup
17                                 passwd card last_xact_id standing profile/ );
18 __PACKAGE__->columns( Others => qw/prefix suffix address alert_message
19                                    day_phone evening_phone other_phone/ );
20
21 #-------------------------------------------------------------------------------
22 package actor::profile;
23 use base qw/actor/;
24
25 __PACKAGE__->table( 'actor_profile' );
26 __PACKAGE__->columns( Primary => qw/id/);
27 __PACKAGE__->columns( Essential => qw/name/);
28
29 #-------------------------------------------------------------------------------
30 package actor::org_unit_type;
31 use base qw/actor/;
32
33 __PACKAGE__->table( 'actor_org_unit_type' );
34 __PACKAGE__->columns( Primary => qw/id/);
35 __PACKAGE__->columns( Essential => qw/name depth parent can_have_vols can_have_users/);
36
37 #-------------------------------------------------------------------------------
38 package actor::org_unit;
39 use base qw/actor/;
40
41 __PACKAGE__->table( 'actor_org_unit' );
42 __PACKAGE__->columns( Primary => qw/id/);
43 __PACKAGE__->columns( Essential => qw/parent_ou ou_type address shortname name/);
44
45 #-------------------------------------------------------------------------------
46 package actor::stat_cat;
47 use base qw/actor/;
48
49 __PACKAGE__->table( 'actor_stat_cat' );
50 __PACKAGE__->columns( Primary => qw/id/ );
51 __PACKAGE__->columns( Essential => qw/owner name opac_visible/ );
52
53 #-------------------------------------------------------------------------------
54 package actor::stat_cat_entry;
55 use base qw/actor/;
56
57 __PACKAGE__->table( 'actor_stat_cat_entry' );
58 __PACKAGE__->columns( Primary => qw/id/ );
59 __PACKAGE__->columns( Essential => qw/owner value/ );
60
61 #-------------------------------------------------------------------------------
62 package actor::stat_cat_entry_user_map;
63 use base qw/actor/;
64
65 __PACKAGE__->table( 'actor_stat_cat_entry_usr_map' );
66 __PACKAGE__->columns( Primary => qw/id/ );
67 __PACKAGE__->columns( Essential => qw/stat_cat_entry target_user/ );
68
69 #-------------------------------------------------------------------------------
70 package actor::card;
71 use base qw/actor/;
72
73 __PACKAGE__->table( 'actor_card' );
74 __PACKAGE__->columns( Primary => qw/id/ );
75 __PACKAGE__->columns( Essential => qw/usr barcode active/ );
76
77 #-------------------------------------------------------------------------------
78 package actor::user_access_entry;
79 use base qw/actor/;
80 #-------------------------------------------------------------------------------
81 package actor::perm_group;
82 use base qw/actor/;
83 #-------------------------------------------------------------------------------
84 package actor::permission;
85 use base qw/actor/;
86 #-------------------------------------------------------------------------------
87 package actor::perm_group_permission_map;
88 use base qw/actor/;
89 #-------------------------------------------------------------------------------
90 package actor::perm_group_user_map;
91 use base qw/actor/;
92 #-------------------------------------------------------------------------------
93 package actor::user_address;
94 use base qw/actor/;
95
96 __PACKAGE__->table( 'actor_card' );
97 __PACKAGE__->columns( Primary => qw/id/ );
98 __PACKAGE__->columns( Essential => qw/valid address_type usr street1 street2
99                                       county state country post_code/ );
100
101 #-------------------------------------------------------------------------------
102 package actor::profile;
103 use base qw/actor/;
104
105 __PACKAGE__->table( 'actor_card' );
106 __PACKAGE__->columns( Primary => qw/id/ );
107 __PACKAGE__->columns( Essential => qw/name/ );
108
109 #-------------------------------------------------------------------------------
110 1;
111