]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/CorrespondentFullName.pm
d4f73b097c6a26083d06927ae6ffc2d650639377
[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 =item * L<DBIx::Class::TimeStamp>
25
26 =back
27
28 =cut
29
30 __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp");
31
32 =head1 TABLE: C<correspondent_full_name>
33
34 =cut
35
36 __PACKAGE__->table("correspondent_full_name");
37
38 =head1 ACCESSORS
39
40 =head2 id
41
42   data_type: 'integer'
43   is_auto_increment: 1
44   is_nullable: 0
45   sequence: 'correspondent_full_name_id_seq'
46
47 Correspondent full name id
48
49 =head2 correspondent
50
51   data_type: 'integer'
52   is_foreign_key: 1
53   is_nullable: 0
54
55 =head2 full_name
56
57   data_type: 'text'
58   is_nullable: 0
59
60 Correspondent full name (includes e-mail address)
61
62 =head2 last_seen
63
64   data_type: 'timestamp'
65   default_value: current_timestamp
66   is_nullable: 0
67   original: {default_value => \"now()"}
68
69 =cut
70
71 __PACKAGE__->add_columns(
72   "id",
73   {
74     data_type         => "integer",
75     is_auto_increment => 1,
76     is_nullable       => 0,
77     sequence          => "correspondent_full_name_id_seq",
78   },
79   "correspondent",
80   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
81   "full_name",
82   { data_type => "text", is_nullable => 0 },
83   "last_seen",
84   {
85     data_type     => "timestamp",
86     default_value => \"current_timestamp",
87     is_nullable   => 0,
88     original      => { default_value => \"now()" },
89   },
90 );
91
92 =head1 PRIMARY KEY
93
94 =over 4
95
96 =item * L</id>
97
98 =back
99
100 =cut
101
102 __PACKAGE__->set_primary_key("id");
103
104 =head1 UNIQUE CONSTRAINTS
105
106 =head2 C<correspondent_full_name_correspondent_full_name_idx>
107
108 =over 4
109
110 =item * L</correspondent>
111
112 =item * L</full_name>
113
114 =back
115
116 =cut
117
118 __PACKAGE__->add_unique_constraint(
119   "correspondent_full_name_correspondent_full_name_idx",
120   ["correspondent", "full_name"],
121 );
122
123 =head1 RELATIONS
124
125 =head2 correspondent
126
127 Type: belongs_to
128
129 Related object: L<Debbugs::DB::Result::Correspondent>
130
131 =cut
132
133 __PACKAGE__->belongs_to(
134   "correspondent",
135   "Debbugs::DB::Result::Correspondent",
136   { id => "correspondent" },
137   { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
138 );
139
140
141 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
142 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rXiBbe/rMz4dOMgW5ZovWw
143
144
145 # You can replace this text with custom code or comments, and it will be preserved on regeneration
146 1;