1 package OpenILS::Application::Storage::CDBI::actor;
4 #-------------------------------------------------------------------------------
6 use base qw/OpenILS::Application::Storage::CDBI/;
7 #-------------------------------------------------------------------------------
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/ );
23 #-------------------------------------------------------------------------------
24 package actor::user_setting;
27 __PACKAGE__->table( 'actor_user_setting' );
28 __PACKAGE__->columns( Primary => qw/id/);
29 __PACKAGE__->columns( Essential => qw/usr name value/);
31 #-------------------------------------------------------------------------------
32 package actor::profile;
35 __PACKAGE__->table( 'actor_profile' );
36 __PACKAGE__->columns( Primary => qw/id/);
37 __PACKAGE__->columns( Essential => qw/name/);
39 #-------------------------------------------------------------------------------
40 package actor::org_unit_type;
43 __PACKAGE__->table( 'actor_org_unit_type' );
44 __PACKAGE__->columns( Primary => qw/id/);
45 __PACKAGE__->columns( Essential => qw/name opac_label depth parent can_have_vols can_have_users/);
47 #-------------------------------------------------------------------------------
48 package actor::org_unit;
51 __PACKAGE__->table( 'actor_org_unit' );
52 __PACKAGE__->columns( Primary => qw/id/);
53 __PACKAGE__->columns( Essential => qw/parent_ou ou_type mailing_address billing_address
54 ill_address holds_address shortname name/);
56 #-------------------------------------------------------------------------------
57 package actor::org_unit_setting;
60 __PACKAGE__->table( 'actor_org_unit_setting' );
61 __PACKAGE__->columns( Primary => qw/id/);
62 __PACKAGE__->columns( Essential => qw/org_unit name value/);
65 #-------------------------------------------------------------------------------
66 package actor::stat_cat;
69 __PACKAGE__->table( 'actor_stat_cat' );
70 __PACKAGE__->columns( Primary => qw/id/ );
71 __PACKAGE__->columns( Essential => qw/owner name opac_visible/ );
73 #-------------------------------------------------------------------------------
74 package actor::stat_cat_entry;
77 __PACKAGE__->table( 'actor_stat_cat_entry' );
78 __PACKAGE__->columns( Primary => qw/id/ );
79 __PACKAGE__->columns( Essential => qw/stat_cat owner value/ );
81 #-------------------------------------------------------------------------------
82 package actor::stat_cat_entry_user_map;
85 __PACKAGE__->table( 'actor_stat_cat_entry_usr_map' );
86 __PACKAGE__->columns( Primary => qw/id/ );
87 __PACKAGE__->columns( Essential => qw/stat_cat stat_cat_entry target_usr/ );
89 #-------------------------------------------------------------------------------
93 __PACKAGE__->table( 'actor_card' );
94 __PACKAGE__->columns( Primary => qw/id/ );
95 __PACKAGE__->columns( Essential => qw/usr barcode active/ );
97 #-------------------------------------------------------------------------------
98 package actor::user_access_entry;
100 #-------------------------------------------------------------------------------
101 package actor::perm_group;
103 #-------------------------------------------------------------------------------
104 package actor::permission;
106 #-------------------------------------------------------------------------------
107 package actor::perm_group_permission_map;
109 #-------------------------------------------------------------------------------
110 package actor::perm_group_user_map;
112 #-------------------------------------------------------------------------------
113 package actor::user_address;
116 __PACKAGE__->table( 'actor_usr_address' );
117 __PACKAGE__->columns( Primary => qw/id/ );
118 __PACKAGE__->columns( Essential => qw/valid address_type usr street1 street2
119 city county state country post_code/ );
121 #-------------------------------------------------------------------------------
122 package actor::org_address;
125 __PACKAGE__->table( 'actor_org_address' );
126 __PACKAGE__->columns( Primary => qw/id/ );
127 __PACKAGE__->columns( Essential => qw/valid address_type org_unit street1 street2
128 city county state country post_code/ );
130 #-------------------------------------------------------------------------------
131 package actor::profile;
134 __PACKAGE__->table( 'actor_profile' );
135 __PACKAGE__->columns( Primary => qw/id/ );
136 __PACKAGE__->columns( Essential => qw/name/ );
138 #-------------------------------------------------------------------------------