]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/Arch.pm
bc50ae405f869623a2ecaf8295872ed4f4ff5cba
[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
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<arch>
31
32 =cut
33
34 __PACKAGE__->table("arch");
35
36 =head1 ACCESSORS
37
38 =head2 id
39
40   data_type: 'integer'
41   is_auto_increment: 1
42   is_nullable: 0
43   sequence: 'arch_id_seq'
44
45 =head2 arch
46
47   data_type: 'text'
48   is_nullable: 0
49
50 =cut
51
52 __PACKAGE__->add_columns(
53   "id",
54   {
55     data_type         => "integer",
56     is_auto_increment => 1,
57     is_nullable       => 0,
58     sequence          => "arch_id_seq",
59   },
60   "arch",
61   { data_type => "text", is_nullable => 0 },
62 );
63
64 =head1 PRIMARY KEY
65
66 =over 4
67
68 =item * L</id>
69
70 =back
71
72 =cut
73
74 __PACKAGE__->set_primary_key("id");
75
76 =head1 UNIQUE CONSTRAINTS
77
78 =head2 C<arch_arch_key>
79
80 =over 4
81
82 =item * L</arch>
83
84 =back
85
86 =cut
87
88 __PACKAGE__->add_unique_constraint("arch_arch_key", ["arch"]);
89
90 =head1 RELATIONS
91
92 =head2 bin_vers
93
94 Type: has_many
95
96 Related object: L<Debbugs::DB::Result::BinVer>
97
98 =cut
99
100 __PACKAGE__->has_many(
101   "bin_vers",
102   "Debbugs::DB::Result::BinVer",
103   { "foreign.arch_id" => "self.id" },
104   { cascade_copy => 0, cascade_delete => 0 },
105 );
106
107
108 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-11-23 17:41:43
109 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kL57i2SauNRCt/bK6ACRKg
110
111
112 # You can replace this text with custom code or comments, and it will be preserved on regeneration
113 1;