« blib/lib/RackTables/Schema/Result/Molecule.pm
↑ Summary
blib/lib/RackTables/Schema/Result/ObjectLog.pm »
| 1 | package RackTables::Schema::Result::MountOperation; | ||
| 2 | |||
| 3 | # Created by DBIx::Class::Schema::Loader | ||
| 4 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
| 5 | |||
| 6 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | ▶ | use MooseX::NonMoose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 1 | extends 'DBIx::Class::Core'; | |
| 13 | |||
| 14 | |||
| 15 | =head1 NAME | ||
| 16 | |||
| 17 | RackTables::Schema::Result::MountOperation | ||
| 18 | |||
| 19 | =cut | ||
| 20 | |||
| 21 | 1 | __PACKAGE__->table("MountOperation"); | |
| 22 | |||
| 23 | =head1 ACCESSORS | ||
| 24 | |||
| 25 | =head2 id | ||
| 26 | |||
| 27 | data_type: 'integer' | ||
| 28 | extra: {unsigned => 1} | ||
| 29 | is_auto_increment: 1 | ||
| 30 | is_nullable: 0 | ||
| 31 | |||
| 32 | =head2 object_id | ||
| 33 | |||
| 34 | data_type: 'integer' | ||
| 35 | default_value: 0 | ||
| 36 | extra: {unsigned => 1} | ||
| 37 | is_foreign_key: 1 | ||
| 38 | is_nullable: 0 | ||
| 39 | |||
| 40 | =head2 ctime | ||
| 41 | |||
| 42 | data_type: 'timestamp' | ||
| 43 | datetime_undef_if_invalid: 1 | ||
| 44 | default_value: current_timestamp | ||
| 45 | is_nullable: 0 | ||
| 46 | |||
| 47 | =head2 user_name | ||
| 48 | |||
| 49 | data_type: 'char' | ||
| 50 | is_nullable: 1 | ||
| 51 | size: 64 | ||
| 52 | |||
| 53 | =head2 old_molecule_id | ||
| 54 | |||
| 55 | data_type: 'integer' | ||
| 56 | extra: {unsigned => 1} | ||
| 57 | is_nullable: 1 | ||
| 58 | |||
| 59 | =head2 new_molecule_id | ||
| 60 | |||
| 61 | data_type: 'integer' | ||
| 62 | extra: {unsigned => 1} | ||
| 63 | is_nullable: 1 | ||
| 64 | |||
| 65 | =head2 comment | ||
| 66 | |||
| 67 | data_type: 'text' | ||
| 68 | is_nullable: 1 | ||
| 69 | |||
| 70 | =cut | ||
| 71 | |||
| 72 | 1 | __PACKAGE__->add_columns( | |
| 73 | "id", | ||
| 74 | { | ||
| 75 | data_type => "integer", | ||
| 76 | extra => { unsigned => 1 }, | ||
| 77 | is_auto_increment => 1, | ||
| 78 | is_nullable => 0, | ||
| 79 | }, | ||
| 80 | "object_id", | ||
| 81 | { | ||
| 82 | data_type => "integer", | ||
| 83 | default_value => 0, | ||
| 84 | extra => { unsigned => 1 }, | ||
| 85 | is_foreign_key => 1, | ||
| 86 | is_nullable => 0, | ||
| 87 | }, | ||
| 88 | "ctime", | ||
| 89 | { | ||
| 90 | data_type => "timestamp", | ||
| 91 | datetime_undef_if_invalid => 1, | ||
| 92 | default_value => \"current_timestamp", | ||
| 93 | is_nullable => 0, | ||
| 94 | }, | ||
| 95 | "user_name", | ||
| 96 | { data_type => "char", is_nullable => 1, size => 64 }, | ||
| 97 | "old_molecule_id", | ||
| 98 | { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, | ||
| 99 | "new_molecule_id", | ||
| 100 | { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, | ||
| 101 | "comment", | ||
| 102 | { data_type => "text", is_nullable => 1 }, | ||
| 103 | ); | ||
| 104 | 1 | __PACKAGE__->set_primary_key("id"); | |
| 105 | |||
| 106 | =head1 RELATIONS | ||
| 107 | |||
| 108 | =head2 object | ||
| 109 | |||
| 110 | Type: belongs_to | ||
| 111 | |||
| 112 | Related object: L<RackTables::Schema::Result::RackObject> | ||
| 113 | |||
| 114 | =cut | ||
| 115 | |||
| 116 | 1 | __PACKAGE__->belongs_to( | |
| 117 | "object", | ||
| 118 | "RackTables::Schema::Result::RackObject", | ||
| 119 | { id => "object_id" }, | ||
| 120 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||
| 121 | ); | ||
| 122 | |||
| 123 | |||
| 124 | # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02 | ||
| 125 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BQt7asiHT6ho4k+eKs2AgA | ||
| 126 | |||
| 127 | |||
| 128 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 129 | 1 | __PACKAGE__->meta->make_immutable; | |
| 130 | 1 | 1; | |