]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/SrcPkgAlias.pm
remove bug_severity
[debbugs.git] / Debbugs / DB / Result / SrcPkgAlias.pm
1 use utf8;
2 package Debbugs::DB::Result::SrcPkgAlias;
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::SrcPkgAlias
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<src_pkg_alias>
31
32 =cut
33
34 __PACKAGE__->table("src_pkg_alias");
35
36 =head1 ACCESSORS
37
38 =head2 id
39
40   data_type: 'integer'
41   is_auto_increment: 1
42   is_nullable: 0
43   sequence: 'src_pkg_alias_id_seq'
44
45 =head2 src_pkg_id
46
47   data_type: 'integer'
48   is_foreign_key: 1
49   is_nullable: 0
50
51 =head2 pkg_alias
52
53   data_type: 'text'
54   is_nullable: 0
55
56 =cut
57
58 __PACKAGE__->add_columns(
59   "id",
60   {
61     data_type         => "integer",
62     is_auto_increment => 1,
63     is_nullable       => 0,
64     sequence          => "src_pkg_alias_id_seq",
65   },
66   "src_pkg_id",
67   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
68   "pkg_alias",
69   { data_type => "text", is_nullable => 0 },
70 );
71
72 =head1 PRIMARY KEY
73
74 =over 4
75
76 =item * L</id>
77
78 =back
79
80 =cut
81
82 __PACKAGE__->set_primary_key("id");
83
84 =head1 UNIQUE CONSTRAINTS
85
86 =head2 C<pkg_alias_src_pkg_id_idx>
87
88 =over 4
89
90 =item * L</pkg_alias>
91
92 =item * L</src_pkg_id>
93
94 =back
95
96 =cut
97
98 __PACKAGE__->add_unique_constraint("pkg_alias_src_pkg_id_idx", ["pkg_alias", "src_pkg_id"]);
99
100 =head1 RELATIONS
101
102 =head2 src_pkg
103
104 Type: belongs_to
105
106 Related object: L<Debbugs::DB::Result::SrcPkg>
107
108 =cut
109
110 __PACKAGE__->belongs_to(
111   "src_pkg",
112   "Debbugs::DB::Result::SrcPkg",
113   { id => "src_pkg_id" },
114   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
115 );
116
117
118 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-07-17 10:25:29
119 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:y5PGSPakrgG4u/oXIau2pw
120
121
122 # You can replace this text with custom code or comments, and it will be preserved on regeneration
123 1;