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.11'; |
4
|
|
|
|
|
|
|
# ABSTRACT: Tapper - Containg Tapper users |
5
|
|
|
|
|
|
|
|
6
|
7
|
|
|
7
|
|
3540
|
use strict; |
|
7
|
|
|
|
|
17
|
|
|
7
|
|
|
|
|
181
|
|
7
|
7
|
|
|
7
|
|
158
|
use warnings; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
206
|
|
8
|
|
|
|
|
|
|
|
9
|
7
|
|
|
7
|
|
32
|
use parent 'DBIx::Class'; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
34
|
|
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) 2019 by Advanced Micro Devices, Inc.. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
This is free software, licensed under: |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
The (two-clause) FreeBSD License |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=cut |