Galileo/DB/Schema/Result/User.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« Galileo/DB/Schema/Result/Page.pm ↑ Summary
1 package Galileo::DB::Schema::Result::User;
2  
3 use DBIx::Class::Candy
4 3 ▶ -autotable => v1,
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 -components => [ qw/ EncodedColumn / ];
6  
7 3 primary_column user_id => {
8 data_type => 'INT',
9 is_auto_increment => 1,
10 };
11  
12 3 unique_column name => {
13 data_type => 'VARCHAR',
14 size => 255,
15 };
16  
17 3 column full => {
18 data_type => 'TEXT',
19 };
20  
21 3 column password => {
22 data_type => 'CHAR',
23 size => 59,
24 encode_column => 1,
25 encode_class => 'Crypt::Eksblowfish::Bcrypt',
26 encode_args => { key_nul => 0, cost => 8 },
27 encode_check_method => 'check_password',
28 };
29  
30 3 column is_author => {
31 data_type => 'BOOL',
32 default_value => 0,
33 };
34  
35 3 column is_admin => {
36 data_type => 'BOOL',
37 default_value => 0,
38 };
39  
40 3 has_many pages => 'Galileo::DB::Schema::Result::Page', 'author_id';
41  
42 3 1;
43  
« Galileo/DB/Schema/Result/Page.pm ↑ Summary