« lib/Test2/Harness/UI/Schema/PostgreSQL/Permission.pm
↑ Summary
lib/Test2/Harness/UI/Schema/PostgreSQL/Project.pm »
| 1 | 1 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | package Test2::Harness::UI::Schema::Result::PrimaryEmail; | ||
| 3 | |||
| 4 | # Created by DBIx::Class::Schema::Loader | ||
| 5 | # DO NOT MODIFY ANY PART OF THIS FILE | ||
| 6 | |||
| 7 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 1 | ▶ | use base 'Test2::Harness::UI::Schema::ResultBase'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | __PACKAGE__->load_components( | |
| 12 | "InflateColumn::DateTime", | ||
| 13 | "InflateColumn::Serializer", | ||
| 14 | "InflateColumn::Serializer::JSON", | ||
| 15 | "Tree::AdjacencyList", | ||
| 16 | "UUIDColumns", | ||
| 17 | ); | ||
| 18 | 1 | __PACKAGE__->table("primary_email"); | |
| 19 | 1 | __PACKAGE__->add_columns( | |
| 20 | "user_id", | ||
| 21 | { data_type => "uuid", is_foreign_key => 1, is_nullable => 0, size => 16 }, | ||
| 22 | "email_id", | ||
| 23 | { data_type => "uuid", is_foreign_key => 1, is_nullable => 0, size => 16 }, | ||
| 24 | ); | ||
| 25 | 1 | __PACKAGE__->set_primary_key("user_id"); | |
| 26 | 1 | __PACKAGE__->add_unique_constraint("primary_email_email_id_key", ["email_id"]); | |
| 27 | 1 | __PACKAGE__->belongs_to( | |
| 28 | "email", | ||
| 29 | "Test2::Harness::UI::Schema::Result::Email", | ||
| 30 | { email_id => "email_id" }, | ||
| 31 | { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" }, | ||
| 32 | ); | ||
| 33 | 1 | __PACKAGE__->belongs_to( | |
| 34 | "user", | ||
| 35 | "Test2::Harness::UI::Schema::Result::User", | ||
| 36 | { user_id => "user_id" }, | ||
| 37 | { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" }, | ||
| 38 | ); | ||
| 39 | |||
| 40 | |||
| 41 | # Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-02 16:05:20 | ||
| 42 | # DO NOT MODIFY ANY PART OF THIS FILE | ||
| 43 | |||
| 44 | 1 | 1; | |