]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/Arch.pm
switch to compatibility level 12
[debbugs.git] / Debbugs / DB / Result / Arch.pm
1 use utf8;
2 package Debbugs::DB::Result::Arch;
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::Arch - Architectures
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<arch>
33
34 =cut
35
36 __PACKAGE__->table("arch");
37
38 =head1 ACCESSORS
39
40 =head2 id
41
42   data_type: 'integer'
43   is_auto_increment: 1
44   is_nullable: 0
45   sequence: 'arch_id_seq'
46
47 Architecture id
48
49 =head2 arch
50
51   data_type: 'text'
52   is_nullable: 0
53
54 Architecture name
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          => "arch_id_seq",
65   },
66   "arch",
67   { data_type => "text", is_nullable => 0 },
68 );
69
70 =head1 PRIMARY KEY
71
72 =over 4
73
74 =item * L</id>
75
76 =back
77
78 =cut
79
80 __PACKAGE__->set_primary_key("id");
81
82 =head1 UNIQUE CONSTRAINTS
83
84 =head2 C<arch_arch_key>
85
86 =over 4
87
88 =item * L</arch>
89
90 =back
91
92 =cut
93
94 __PACKAGE__->add_unique_constraint("arch_arch_key", ["arch"]);
95
96 =head1 RELATIONS
97
98 =head2 bin_vers
99
100 Type: has_many
101
102 Related object: L<Debbugs::DB::Result::BinVer>
103
104 =cut
105
106 __PACKAGE__->has_many(
107   "bin_vers",
108   "Debbugs::DB::Result::BinVer",
109   { "foreign.arch" => "self.id" },
110   { cascade_copy => 0, cascade_delete => 0 },
111 );
112
113 =head2 bug_status_caches
114
115 Type: has_many
116
117 Related object: L<Debbugs::DB::Result::BugStatusCache>
118
119 =cut
120
121 __PACKAGE__->has_many(
122   "bug_status_caches",
123   "Debbugs::DB::Result::BugStatusCache",
124   { "foreign.arch" => "self.id" },
125   { cascade_copy => 0, cascade_delete => 0 },
126 );
127
128
129 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
130 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9pDiZg68Odz66DpCB9GpsA
131
132
133 # You can replace this text with custom code or comments, and it will be preserved on regeneration
134 1;