Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
264 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
use utf8; | ||
package Kinza::Schema::Result::Form; | ||
|
||
# Created by DBIx::Class::Schema::Loader | ||
# DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
|
||
=head1 NAME | ||
Kinza::Schema::Result::Form | ||
=cut | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use Moose; | ||
use MooseX::NonMoose; | ||
use MooseX::MarkAsMethods autoclean => 1; | ||
extends 'DBIx::Class::Core'; | ||
|
||
=head1 COMPONENTS LOADED | ||
=over 4 | ||
=item * L<DBIx::Class::InflateColumn::DateTime> | ||
=item * L<DBIx::Class::TimeStamp> | ||
=back | ||
=cut | ||
|
||
__PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp"); | ||
|
||
=head1 TABLE: C<form> | ||
=cut | ||
|
||
__PACKAGE__->table("form"); | ||
|
||
=head1 ACCESSORS | ||
=head2 id | ||
data_type: 'integer' | ||
is_auto_increment: 1 | ||
is_nullable: 0 | ||
=head2 name | ||
data_type: 'varchar' | ||
is_nullable: 1 | ||
size: 255 | ||
=head2 year_id | ||
data_type: 'integer' | ||
is_foreign_key: 1 | ||
is_nullable: 0 | ||
=cut | ||
|
||
__PACKAGE__->add_columns( | ||
"id", | ||
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||
"name", | ||
{ data_type => "varchar", is_nullable => 1, size => 255 }, | ||
"year_id", | ||
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||
); | ||
|
||
=head1 PRIMARY KEY | ||
=over 4 | ||
=item * L</id> | ||
=back | ||
=cut | ||
|
||
__PACKAGE__->set_primary_key("id"); | ||
|
||
=head1 RELATIONS | ||
=head2 year | ||
Type: belongs_to | ||
Related object: L<Kinza::Schema::Result::Year> | ||
=cut | ||
|
||
__PACKAGE__->belongs_to( | ||
"year", | ||
"Kinza::Schema::Result::Year", | ||
{ id => "year_id" }, | ||
{ is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, | ||
); | ||
|
||
|
||
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-09-07 16:18:05 | ||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EMHLaKP8SKqzMLixsT0NGg | ||
|
||
|
||
# You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
__PACKAGE__->meta->make_immutable; | ||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
use utf8; | ||
package Kinza::Schema::Result::Year; | ||
|
||
# Created by DBIx::Class::Schema::Loader | ||
# DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
|
||
=head1 NAME | ||
Kinza::Schema::Result::Year | ||
=cut | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use Moose; | ||
use MooseX::NonMoose; | ||
use MooseX::MarkAsMethods autoclean => 1; | ||
extends 'DBIx::Class::Core'; | ||
|
||
=head1 COMPONENTS LOADED | ||
=over 4 | ||
=item * L<DBIx::Class::InflateColumn::DateTime> | ||
=item * L<DBIx::Class::TimeStamp> | ||
=back | ||
=cut | ||
|
||
__PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp"); | ||
|
||
=head1 TABLE: C<year> | ||
=cut | ||
|
||
__PACKAGE__->table("year"); | ||
|
||
=head1 ACCESSORS | ||
=head2 id | ||
data_type: 'integer' | ||
is_auto_increment: 1 | ||
is_nullable: 0 | ||
=head2 name | ||
data_type: 'varchar' | ||
is_nullable: 1 | ||
size: 255 | ||
=cut | ||
|
||
__PACKAGE__->add_columns( | ||
"id", | ||
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||
"name", | ||
{ data_type => "varchar", is_nullable => 1, size => 255 }, | ||
); | ||
|
||
=head1 PRIMARY KEY | ||
=over 4 | ||
=item * L</id> | ||
=back | ||
=cut | ||
|
||
__PACKAGE__->set_primary_key("id"); | ||
|
||
=head1 RELATIONS | ||
=head2 forms | ||
Type: has_many | ||
Related object: L<Kinza::Schema::Result::Form> | ||
=cut | ||
|
||
__PACKAGE__->has_many( | ||
"forms", | ||
"Kinza::Schema::Result::Form", | ||
{ "foreign.year_id" => "self.id" }, | ||
{ cascade_copy => 0, cascade_delete => 0 }, | ||
); | ||
|
||
|
||
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-09-07 16:18:05 | ||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hAolxMnPEFonrAaw4rktsg | ||
|
||
|
||
# You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
__PACKAGE__->meta->make_immutable; | ||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name year_id | ||
Upper 3F 1 | ||
Upper 3K 1 | ||
Upper 3S 1 | ||
Lower 4F 2 | ||
Lower 4K 2 | ||
Lower 4S 2 | ||
Upper 4F 3 | ||
Upper 4K 3 | ||
Upper 4S 3 | ||
Lower 5F 4 | ||
Lower 5K 4 | ||
Lower 5S 4 | ||
Upper 5F 5 | ||
Upper 5K 5 | ||
Upper 5S 5 | ||
Lower 6P 6 | ||
Lower 6Q 6 | ||
Lower 6R 6 | ||
Lower 6S 6 | ||
Upper 6A 7 | ||
Upper 6B 7 | ||
Upper 6C 7 | ||
Upper 6D 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name | ||
Upper 3 | ||
Lower 4 | ||
Upper 4 | ||
Lower 5 | ||
Upper 5 | ||
Lower 6 | ||
Upper 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters