blib/lib/auto/share/dist/Dancer2/skel/tutorial/lib/AppFile/Schema/Result/User.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use utf8;
2 package [d2% appname %2d]::Schema::Result::User;
3  
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6  
7 =head1 NAME
8  
9 [d2% appname %2d]::Schema::Result::User
10  
11 =cut
12  
13 use strict;
14 use warnings;
15  
16 use base 'DBIx::Class::Core';
17  
18 =head1 COMPONENTS LOADED
19  
20 =over 4
21  
22 =item * L<DBIx::Class::InflateColumn::DateTime>
23  
24 =back
25  
26 =cut
27  
28 __PACKAGE__->load_components("InflateColumn::DateTime");
29  
30 =head1 TABLE: C<users>
31  
32 =cut
33  
34 __PACKAGE__->table("users");
35  
36 =head1 ACCESSORS
37  
38 =head2 id
39  
40 data_type: 'integer'
41 is_auto_increment: 1
42 is_nullable: 0
43  
44 =head2 username
45  
46 data_type: 'varchar'
47 is_nullable: 0
48  
49 =head2 password
50  
51 data_type: 'varchar'
52 is_nullable: 0
53  
54 =cut
55  
56 __PACKAGE__->add_columns(
57 "id",
58 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
59 "username",
60 { data_type => "varchar", is_nullable => 0 },
61 "password",
62 { data_type => "varchar", is_nullable => 0 },
63 );
64  
65 =head1 PRIMARY KEY
66  
67 =over 4
68  
69 =item * L</id>
70  
71 =back
72  
73 =cut
74  
75 __PACKAGE__->set_primary_key("id");
76  
77 =head1 UNIQUE CONSTRAINTS
78  
79 =head2 C<username_unique>
80  
81 =over 4
82  
83 =item * L</username>
84  
85 =back
86  
87 =cut
88  
89 __PACKAGE__->add_unique_constraint("username_unique", ["username"]);
90  
91  
92 # Created by DBIx::Class::Schema::Loader v0.07052 @ 2025-01-20 16:18:57
93 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ikxznXtmEBDO0eWY24/fFA
94  
95  
96 # You can replace this text with custom code or comments, and it will be preserved on regeneration
97 1;