]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/actor.pm
ec6c8af3818a0f8c42460b72ee4b79400d1b7346
[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 billing_address
15                                 claims_returned_count home_ou gender dob
16                                 active master_account ident_type ident_value
17                                 super_user usrgroup passwd card last_xact_id
18                                 standing profile prefix suffix alert_message
19                                 day_phone evening_phone other_phone mailing_address/ );
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 mailing_address billing_address
44                                 ill_address holds_address shortname name/);
45
46 #-------------------------------------------------------------------------------
47 package actor::stat_cat;
48 use base qw/actor/;
49
50 __PACKAGE__->table( 'actor_stat_cat' );
51 __PACKAGE__->columns( Primary => qw/id/ );
52 __PACKAGE__->columns( Essential => qw/owner name opac_visible/ );
53
54 #-------------------------------------------------------------------------------
55 package actor::stat_cat_entry;
56 use base qw/actor/;
57
58 __PACKAGE__->table( 'actor_stat_cat_entry' );
59 __PACKAGE__->columns( Primary => qw/id/ );
60 __PACKAGE__->columns( Essential => qw/owner value/ );
61
62 #-------------------------------------------------------------------------------
63 package actor::stat_cat_entry_user_map;
64 use base qw/actor/;
65
66 __PACKAGE__->table( 'actor_stat_cat_entry_usr_map' );
67 __PACKAGE__->columns( Primary => qw/id/ );
68 __PACKAGE__->columns( Essential => qw/stat_cat_entry target_user/ );
69
70 #-------------------------------------------------------------------------------
71 package actor::card;
72 use base qw/actor/;
73
74 __PACKAGE__->table( 'actor_card' );
75 __PACKAGE__->columns( Primary => qw/id/ );
76 __PACKAGE__->columns( Essential => qw/usr barcode active/ );
77
78 #-------------------------------------------------------------------------------
79 package actor::user_access_entry;
80 use base qw/actor/;
81 #-------------------------------------------------------------------------------
82 package actor::perm_group;
83 use base qw/actor/;
84 #-------------------------------------------------------------------------------
85 package actor::permission;
86 use base qw/actor/;
87 #-------------------------------------------------------------------------------
88 package actor::perm_group_permission_map;
89 use base qw/actor/;
90 #-------------------------------------------------------------------------------
91 package actor::perm_group_user_map;
92 use base qw/actor/;
93 #-------------------------------------------------------------------------------
94 package actor::user_address;
95 use base qw/actor/;
96
97 __PACKAGE__->table( 'actor_card' );
98 __PACKAGE__->columns( Primary => qw/id/ );
99 __PACKAGE__->columns( Essential => qw/valid address_type usr street1 street2
100                                       city county state country post_code/ );
101
102 #-------------------------------------------------------------------------------
103 package actor::org_address;
104 use base qw/actor/;
105
106 __PACKAGE__->table( 'actor_card' );
107 __PACKAGE__->columns( Primary => qw/id/ );
108 __PACKAGE__->columns( Essential => qw/valid address_type usr street1 street2
109                                       city county state country post_code/ );
110
111 #-------------------------------------------------------------------------------
112 package actor::profile;
113 use base qw/actor/;
114
115 __PACKAGE__->table( 'actor_card' );
116 __PACKAGE__->columns( Primary => qw/id/ );
117 __PACKAGE__->columns( Essential => qw/name/ );
118
119 #-------------------------------------------------------------------------------
120 1;
121