| 1 | use utf8; | ||
| 2 | package Schema::RackTables::0_20_2::Result::Molecule; | ||
| 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_2::Result::Molecule | ||
| 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<Molecule> | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | __PACKAGE__->table("Molecule"); | ||
| 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 | =cut | ||
| 46 | |||
| 47 | __PACKAGE__->add_columns( | ||
| 48 | "id", | ||
| 49 | { | ||
| 50 | data_type => "integer", | ||
| 51 | extra => { unsigned => 1 }, | ||
| 52 | is_auto_increment => 1, | ||
| 53 | is_nullable => 0, | ||
| 54 | }, | ||
| 55 | ); | ||
| 56 | |||
| 57 | =head1 PRIMARY KEY | ||
| 58 | |||
| 59 | =over 4 | ||
| 60 | |||
| 61 | =item * L</id> | ||
| 62 | |||
| 63 | =back | ||
| 64 | |||
| 65 | =cut | ||
| 66 | |||
| 67 | __PACKAGE__->set_primary_key("id"); | ||
| 68 | |||
| 69 | =head1 RELATIONS | ||
| 70 | |||
| 71 | =head2 atoms | ||
| 72 | |||
| 73 | Type: has_many | ||
| 74 | |||
| 75 | Related object: L<Schema::RackTables::0_20_2::Result::Atom> | ||
| 76 | |||
| 77 | =cut | ||
| 78 | |||
| 79 | __PACKAGE__->has_many( | ||
| 80 | "atoms", | ||
| 81 | "Schema::RackTables::0_20_2::Result::Atom", | ||
| 82 | { "foreign.molecule_id" => "self.id" }, | ||
| 83 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 84 | ); | ||
| 85 | |||
| 86 | =head2 mount_operation_new_molecules | ||
| 87 | |||
| 88 | Type: has_many | ||
| 89 | |||
| 90 | Related object: L<Schema::RackTables::0_20_2::Result::MountOperation> | ||
| 91 | |||
| 92 | =cut | ||
| 93 | |||
| 94 | __PACKAGE__->has_many( | ||
| 95 | "mount_operation_new_molecules", | ||
| 96 | "Schema::RackTables::0_20_2::Result::MountOperation", | ||
| 97 | { "foreign.new_molecule_id" => "self.id" }, | ||
| 98 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 99 | ); | ||
| 100 | |||
| 101 | =head2 mount_operation_old_molecules | ||
| 102 | |||
| 103 | Type: has_many | ||
| 104 | |||
| 105 | Related object: L<Schema::RackTables::0_20_2::Result::MountOperation> | ||
| 106 | |||
| 107 | =cut | ||
| 108 | |||
| 109 | __PACKAGE__->has_many( | ||
| 110 | "mount_operation_old_molecules", | ||
| 111 | "Schema::RackTables::0_20_2::Result::MountOperation", | ||
| 112 | { "foreign.old_molecule_id" => "self.id" }, | ||
| 113 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 114 | ); | ||
| 115 | |||
| 116 | |||
| 117 | # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:40 | ||
| 118 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oI7mfOEMtgmAqKBIp67Bvg | ||
| 119 | |||
| 120 | |||
| 121 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 122 | 1; |