« RackTables/0_20_4/Result/PortInterfaceCompat.pm
↑ Summary
RackTables/0_20_4/Result/PortNativeVLAN.pm »
| 1 | use utf8; | ||
| 2 | package Schema::RackTables::0_20_4::Result::PortLog; | ||
| 3 | |||
| 4 | # Created by DBIx::Class::Schema::Loader | ||
| 5 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | Schema::RackTables::0_20_4::Result::PortLog | ||
| 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<PortLog> | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | __PACKAGE__->table("PortLog"); | ||
| 35 | |||
| 36 | =head1 ACCESSORS | ||
| 37 | |||
| 38 | =head2 id | ||
| 39 | |||
| 40 | data_type: 'integer' | ||
| 41 | extra: {unsigned => 1} | ||
| 42 | is_auto_increment: 1 | ||
| 43 | is_nullable: 0 | ||
| 44 | |||
| 45 | =head2 port_id | ||
| 46 | |||
| 47 | data_type: 'integer' | ||
| 48 | extra: {unsigned => 1} | ||
| 49 | is_foreign_key: 1 | ||
| 50 | is_nullable: 0 | ||
| 51 | |||
| 52 | =head2 date | ||
| 53 | |||
| 54 | data_type: 'datetime' | ||
| 55 | datetime_undef_if_invalid: 1 | ||
| 56 | is_nullable: 0 | ||
| 57 | |||
| 58 | =head2 user | ||
| 59 | |||
| 60 | data_type: 'varchar' | ||
| 61 | is_nullable: 0 | ||
| 62 | size: 64 | ||
| 63 | |||
| 64 | =head2 message | ||
| 65 | |||
| 66 | data_type: 'text' | ||
| 67 | is_nullable: 0 | ||
| 68 | |||
| 69 | =cut | ||
| 70 | |||
| 71 | __PACKAGE__->add_columns( | ||
| 72 | "id", | ||
| 73 | { | ||
| 74 | data_type => "integer", | ||
| 75 | extra => { unsigned => 1 }, | ||
| 76 | is_auto_increment => 1, | ||
| 77 | is_nullable => 0, | ||
| 78 | }, | ||
| 79 | "port_id", | ||
| 80 | { | ||
| 81 | data_type => "integer", | ||
| 82 | extra => { unsigned => 1 }, | ||
| 83 | is_foreign_key => 1, | ||
| 84 | is_nullable => 0, | ||
| 85 | }, | ||
| 86 | "date", | ||
| 87 | { | ||
| 88 | data_type => "datetime", | ||
| 89 | datetime_undef_if_invalid => 1, | ||
| 90 | is_nullable => 0, | ||
| 91 | }, | ||
| 92 | "user", | ||
| 93 | { data_type => "varchar", is_nullable => 0, size => 64 }, | ||
| 94 | "message", | ||
| 95 | { data_type => "text", is_nullable => 0 }, | ||
| 96 | ); | ||
| 97 | |||
| 98 | =head1 PRIMARY KEY | ||
| 99 | |||
| 100 | =over 4 | ||
| 101 | |||
| 102 | =item * L</id> | ||
| 103 | |||
| 104 | =back | ||
| 105 | |||
| 106 | =cut | ||
| 107 | |||
| 108 | __PACKAGE__->set_primary_key("id"); | ||
| 109 | |||
| 110 | =head1 RELATIONS | ||
| 111 | |||
| 112 | =head2 port | ||
| 113 | |||
| 114 | Type: belongs_to | ||
| 115 | |||
| 116 | Related object: L<Schema::RackTables::0_20_4::Result::Port> | ||
| 117 | |||
| 118 | =cut | ||
| 119 | |||
| 120 | __PACKAGE__->belongs_to( | ||
| 121 | "port", | ||
| 122 | "Schema::RackTables::0_20_4::Result::Port", | ||
| 123 | { id => "port_id" }, | ||
| 124 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" }, | ||
| 125 | ); | ||
| 126 | |||
| 127 | |||
| 128 | # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:30 | ||
| 129 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bIpMAAqejESWX7ow6a8CPA | ||
| 130 | |||
| 131 | |||
| 132 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 133 | 1; |