]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/actor.pm
3649f46c543bbeaf6d4a3ca4ebdc4963579c23f0
[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 profile prefix suffix alert_message
21                                 day_phone evening_phone other_phone mailing_address/ );
22
23 #-------------------------------------------------------------------------------
24 package actor::profile;
25 use base qw/actor/;
26
27 __PACKAGE__->table( 'actor_profile' );
28 __PACKAGE__->columns( Primary => qw/id/);
29 __PACKAGE__->columns( Essential => qw/name/);
30
31 #-------------------------------------------------------------------------------
32 package actor::org_unit_type;
33 use base qw/actor/;
34
35 __PACKAGE__->table( 'actor_org_unit_type' );
36 __PACKAGE__->columns( Primary => qw/id/);
37 __PACKAGE__->columns( Essential => qw/name opac_label depth parent can_have_vols can_have_users/);
38
39 #-------------------------------------------------------------------------------
40 package actor::org_unit;
41 use base qw/actor/;
42
43 __PACKAGE__->table( 'actor_org_unit' );
44 __PACKAGE__->columns( Primary => qw/id/);
45 __PACKAGE__->columns( Essential => qw/parent_ou ou_type mailing_address billing_address
46                                 ill_address holds_address shortname name/);
47
48 #-------------------------------------------------------------------------------
49 package actor::stat_cat;
50 use base qw/actor/;
51
52 __PACKAGE__->table( 'actor_stat_cat' );
53 __PACKAGE__->columns( Primary => qw/id/ );
54 __PACKAGE__->columns( Essential => qw/owner name opac_visible/ );
55
56 #-------------------------------------------------------------------------------
57 package actor::stat_cat_entry;
58 use base qw/actor/;
59
60 __PACKAGE__->table( 'actor_stat_cat_entry' );
61 __PACKAGE__->columns( Primary => qw/id/ );
62 __PACKAGE__->columns( Essential => qw/stat_cat owner value/ );
63
64 #-------------------------------------------------------------------------------
65 package actor::stat_cat_entry_user_map;
66 use base qw/actor/;
67
68 __PACKAGE__->table( 'actor_stat_cat_entry_usr_map' );
69 __PACKAGE__->columns( Primary => qw/id/ );
70 __PACKAGE__->columns( Essential => qw/stat_cat stat_cat_entry target_usr/ );
71
72 #-------------------------------------------------------------------------------
73 package actor::card;
74 use base qw/actor/;
75
76 __PACKAGE__->table( 'actor_card' );
77 __PACKAGE__->columns( Primary => qw/id/ );
78 __PACKAGE__->columns( Essential => qw/usr barcode active/ );
79
80 #-------------------------------------------------------------------------------
81 package actor::user_access_entry;
82 use base qw/actor/;
83 #-------------------------------------------------------------------------------
84 package actor::perm_group;
85 use base qw/actor/;
86 #-------------------------------------------------------------------------------
87 package actor::permission;
88 use base qw/actor/;
89 #-------------------------------------------------------------------------------
90 package actor::perm_group_permission_map;
91 use base qw/actor/;
92 #-------------------------------------------------------------------------------
93 package actor::perm_group_user_map;
94 use base qw/actor/;
95 #-------------------------------------------------------------------------------
96 package actor::user_address;
97 use base qw/actor/;
98
99 __PACKAGE__->table( 'actor_usr_address' );
100 __PACKAGE__->columns( Primary => qw/id/ );
101 __PACKAGE__->columns( Essential => qw/valid address_type usr street1 street2
102                                       city county state country post_code/ );
103
104 #-------------------------------------------------------------------------------
105 package actor::org_address;
106 use base qw/actor/;
107
108 __PACKAGE__->table( 'actor_org_address' );
109 __PACKAGE__->columns( Primary => qw/id/ );
110 __PACKAGE__->columns( Essential => qw/valid address_type usr street1 street2
111                                       city county state country post_code/ );
112
113 #-------------------------------------------------------------------------------
114 package actor::profile;
115 use base qw/actor/;
116
117 __PACKAGE__->table( 'actor_profile' );
118 __PACKAGE__->columns( Primary => qw/id/ );
119 __PACKAGE__->columns( Essential => qw/name/ );
120
121 #-------------------------------------------------------------------------------
122 1;
123