line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tapper::Schema::TestrunDB::Result::Owner; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TAPPER'; |
3
|
|
|
|
|
|
|
$Tapper::Schema::TestrunDB::Result::Owner::VERSION = '5.0.9'; |
4
|
|
|
|
|
|
|
# ABSTRACT: Tapper - Containg Tapper users |
5
|
|
|
|
|
|
|
|
6
|
7
|
|
|
7
|
|
2879
|
use strict; |
|
7
|
|
|
|
|
10
|
|
|
7
|
|
|
|
|
168
|
|
7
|
7
|
|
|
7
|
|
22
|
use warnings; |
|
7
|
|
|
|
|
10
|
|
|
7
|
|
|
|
|
185
|
|
8
|
|
|
|
|
|
|
|
9
|
7
|
|
|
7
|
|
22
|
use parent 'DBIx::Class'; |
|
7
|
|
|
|
|
6
|
|
|
7
|
|
|
|
|
29
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
__PACKAGE__->load_components(qw(Core)); |
12
|
|
|
|
|
|
|
__PACKAGE__->table("owner"); |
13
|
|
|
|
|
|
|
__PACKAGE__->add_columns |
14
|
|
|
|
|
|
|
( |
15
|
|
|
|
|
|
|
"id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_auto_increment => 1, }, |
16
|
|
|
|
|
|
|
"name", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, }, |
17
|
|
|
|
|
|
|
"login", { data_type => "VARCHAR", default_value => undef, is_nullable => 0, size => 255, }, |
18
|
|
|
|
|
|
|
"password", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, }, |
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
(my $basepkg = __PACKAGE__) =~ s/::\w+$//; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key("id"); |
24
|
|
|
|
|
|
|
__PACKAGE__->add_unique_constraint( unique_login => [ qw/login/ ], ); |
25
|
|
|
|
|
|
|
__PACKAGE__->has_many( contacts => "${basepkg}::Contact", { 'foreign.owner_id' => 'self.id' }); |
26
|
|
|
|
|
|
|
__PACKAGE__->has_many( notifications => "${basepkg}::Notification", { 'foreign.owner_id' => 'self.id' }); |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=pod |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=encoding UTF-8 |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 NAME |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Tapper::Schema::TestrunDB::Result::Owner - Tapper - Containg Tapper users |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 AUTHORS |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=over 4 |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=item * |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
AMD OSRC Tapper Team <tapper@amd64.org> |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=item * |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Tapper Team <tapper-ops@amazon.com> |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=back |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
This software is Copyright (c) 2017 by Advanced Micro Devices, Inc.. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
This is free software, licensed under: |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
The (two-clause) FreeBSD License |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=cut |