« blib/lib/HPC/Runner/Command/Plugin/Logger/Sqlite/Schema/Result/Job.pm
↑ Summary
blib/lib/HPC/Runner/Command/Plugin/Logger/Sqlite/Schema/Result/Task.pm »
| 1 | 2 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | package HPC::Runner::Command::Plugin::Logger::Sqlite::Schema::Result::Submission; | ||
| 3 | |||
| 4 | # Created by DBIx::Class::Schema::Loader | ||
| 5 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | HPC::Runner::Command::Plugin::Logger::Sqlite::Schema::Result::Submission | ||
| 10 | |||
| 11 | =cut | ||
| 12 | |||
| 13 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | 2 | ▶ | use base 'DBIx::Class::Core'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | |||
| 18 | =head1 TABLE: C<submission> | ||
| 19 | |||
| 20 | =cut | ||
| 21 | |||
| 22 | 2 | __PACKAGE__->table("submission"); | |
| 23 | |||
| 24 | =head1 ACCESSORS | ||
| 25 | |||
| 26 | =head2 submission_pi | ||
| 27 | |||
| 28 | data_type: 'integer' | ||
| 29 | is_auto_increment: 1 | ||
| 30 | is_nullable: 0 | ||
| 31 | |||
| 32 | =head2 project | ||
| 33 | |||
| 34 | data_type: 'text' | ||
| 35 | is_nullable: 1 | ||
| 36 | |||
| 37 | =head2 submission_meta | ||
| 38 | |||
| 39 | data_type: 'text' | ||
| 40 | is_nullable: 1 | ||
| 41 | |||
| 42 | =head2 total_processes | ||
| 43 | |||
| 44 | data_type: 'integer' | ||
| 45 | is_nullable: 0 | ||
| 46 | |||
| 47 | =head2 total_batches | ||
| 48 | |||
| 49 | data_type: 'integet' | ||
| 50 | is_nullable: 0 | ||
| 51 | |||
| 52 | =head2 submission_time | ||
| 53 | |||
| 54 | data_type: 'text' | ||
| 55 | is_nullable: 0 | ||
| 56 | |||
| 57 | =cut | ||
| 58 | |||
| 59 | 2 | __PACKAGE__->add_columns( | |
| 60 | "submission_pi", | ||
| 61 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||
| 62 | "project", | ||
| 63 | { data_type => "text", is_nullable => 1 }, | ||
| 64 | "submission_meta", | ||
| 65 | { data_type => "text", is_nullable => 1 }, | ||
| 66 | "total_processes", | ||
| 67 | { data_type => "integer", is_nullable => 0 }, | ||
| 68 | "total_batches", | ||
| 69 | { data_type => "integet", is_nullable => 0 }, | ||
| 70 | "submission_time", | ||
| 71 | { data_type => "text", is_nullable => 0 }, | ||
| 72 | ); | ||
| 73 | |||
| 74 | =head1 PRIMARY KEY | ||
| 75 | |||
| 76 | =over 4 | ||
| 77 | |||
| 78 | =item * L</submission_pi> | ||
| 79 | |||
| 80 | =back | ||
| 81 | |||
| 82 | =cut | ||
| 83 | |||
| 84 | 2 | __PACKAGE__->set_primary_key("submission_pi"); | |
| 85 | |||
| 86 | =head1 RELATIONS | ||
| 87 | |||
| 88 | =head2 jobs | ||
| 89 | |||
| 90 | Type: has_many | ||
| 91 | |||
| 92 | Related object: L<HPC::Runner::Command::Plugin::Logger::Sqlite::Schema::Result::Job> | ||
| 93 | |||
| 94 | =cut | ||
| 95 | |||
| 96 | 2 | __PACKAGE__->has_many( | |
| 97 | "jobs", | ||
| 98 | "HPC::Runner::Command::Plugin::Logger::Sqlite::Schema::Result::Job", | ||
| 99 | { "foreign.submission_fk" => "self.submission_pi" }, | ||
| 100 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 101 | ); | ||
| 102 | |||
| 103 | |||
| 104 | # Created by DBIx::Class::Schema::Loader v0.07045 @ 2017-03-28 14:40:11 | ||
| 105 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:e9yr8/SPDCmvVbTqLXW6PA | ||
| 106 | |||
| 107 | |||
| 108 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 109 | 2 | 1; | |