]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/CorrespondentFullName.pm
get rid of _id in database
[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 =head2 last_seen
61
62   data_type: 'timestamp'
63   default_value: current_timestamp
64   is_nullable: 0
65   original: {default_value => \"now()"}
66
67 =cut
68
69 __PACKAGE__->add_columns(
70   "id",
71   {
72     data_type         => "integer",
73     is_auto_increment => 1,
74     is_nullable       => 0,
75     sequence          => "correspondent_full_name_id_seq",
76   },
77   "correspondent",
78   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
79   "full_name",
80   { data_type => "text", is_nullable => 0 },
81   "last_seen",
82   {
83     data_type     => "timestamp",
84     default_value => \"current_timestamp",
85     is_nullable   => 0,
86     original      => { default_value => \"now()" },
87   },
88 );
89
90 =head1 PRIMARY KEY
91
92 =over 4
93
94 =item * L</id>
95
96 =back
97
98 =cut
99
100 __PACKAGE__->set_primary_key("id");
101
102 =head1 UNIQUE CONSTRAINTS
103
104 =head2 C<correspondent_full_name_correspondent_full_name_idx>
105
106 =over 4
107
108 =item * L</correspondent>
109
110 =item * L</full_name>
111
112 =back
113
114 =cut
115
116 __PACKAGE__->add_unique_constraint(
117   "correspondent_full_name_correspondent_full_name_idx",
118   ["correspondent", "full_name"],
119 );
120
121 =head1 RELATIONS
122
123 =head2 correspondent
124
125 Type: belongs_to
126
127 Related object: L<Debbugs::DB::Result::Correspondent>
128
129 =cut
130
131 __PACKAGE__->belongs_to(
132   "correspondent",
133   "Debbugs::DB::Result::Correspondent",
134   { id => "correspondent" },
135   { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
136 );
137
138
139 # Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-11-21 20:33:17
140 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cvA70xYSRFfzSAXK1z1QzQ
141
142
143 # You can replace this text with custom code or comments, and it will be preserved on regeneration
144 1;