]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/CorrespondentFullName.pm
update result classes for new relationships
[debbugs.git] / Debbugs / DB / Result / CorrespondentFullName.pm
1 use utf8;
2 package Debbugs::DB::Result::CorrespondentFullName;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Debbugs::DB::Result::CorrespondentFullName - Full names of BTS correspondents
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<correspondent_full_name>
31
32 =cut
33
34 __PACKAGE__->table("correspondent_full_name");
35
36 =head1 ACCESSORS
37
38 =head2 id
39
40   data_type: 'integer'
41   is_auto_increment: 1
42   is_nullable: 0
43   sequence: 'correspondent_full_name_id_seq'
44
45 Correspondent full name id
46
47 =head2 correspondent
48
49   data_type: 'integer'
50   is_foreign_key: 1
51   is_nullable: 0
52
53 =head2 full_name
54
55   data_type: 'text'
56   is_nullable: 0
57
58 Correspondent full name (includes e-mail address)
59
60 =cut
61
62 __PACKAGE__->add_columns(
63   "id",
64   {
65     data_type         => "integer",
66     is_auto_increment => 1,
67     is_nullable       => 0,
68     sequence          => "correspondent_full_name_id_seq",
69   },
70   "correspondent",
71   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
72   "full_name",
73   { data_type => "text", is_nullable => 0 },
74 );
75
76 =head1 PRIMARY KEY
77
78 =over 4
79
80 =item * L</id>
81
82 =back
83
84 =cut
85
86 __PACKAGE__->set_primary_key("id");
87
88 =head1 UNIQUE CONSTRAINTS
89
90 =head2 C<correspondent_full_name_correspondent_full_name_idx>
91
92 =over 4
93
94 =item * L</correspondent>
95
96 =item * L</full_name>
97
98 =back
99
100 =cut
101
102 __PACKAGE__->add_unique_constraint(
103   "correspondent_full_name_correspondent_full_name_idx",
104   ["correspondent", "full_name"],
105 );
106
107 =head1 RELATIONS
108
109 =head2 correspondent
110
111 Type: belongs_to
112
113 Related object: L<Debbugs::DB::Result::Correspondent>
114
115 =cut
116
117 __PACKAGE__->belongs_to(
118   "correspondent",
119   "Debbugs::DB::Result::Correspondent",
120   { id => "correspondent" },
121   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
122 );
123
124
125 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-04-01 17:05:37
126 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xGcJNDjhN+ehcFQYzaBxBw
127
128
129 # You can replace this text with custom code or comments, and it will be preserved on regeneration
130 1;