1use utf8;
2package Test2::Harness::UI::Schema::Result::Email;
3
4# Created by DBIx::Class::Schema::Loader
5# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7use strict;
8use warnings;
9
10use base 'DBIx::Class::Core';
11__PACKAGE__->load_components(
12  "InflateColumn::DateTime",
13  "InflateColumn::Serializer",
14  "InflateColumn::Serializer::JSON",
15  "Tree::AdjacencyList",
16  "UUIDColumns",
17);
18__PACKAGE__->table("email");
19__PACKAGE__->add_columns(
20  "email_id",
21  { data_type => "char", is_nullable => 0, size => 36 },
22  "user_id",
23  { data_type => "char", is_foreign_key => 1, is_nullable => 0, size => 36 },
24  "local",
25  { data_type => "varchar", is_nullable => 0, size => 128 },
26  "domain",
27  { data_type => "varchar", is_nullable => 0, size => 128 },
28  "verified",
29  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
30);
31__PACKAGE__->set_primary_key("email_id");
32__PACKAGE__->add_unique_constraint("local", ["local", "domain"]);
33__PACKAGE__->might_have(
34  "email_verification_code",
35  "Test2::Harness::UI::Schema::Result::EmailVerificationCode",
36  { "foreign.email_id" => "self.email_id" },
37  { cascade_copy => 0, cascade_delete => 0 },
38);
39__PACKAGE__->might_have(
40  "primary_email",
41  "Test2::Harness::UI::Schema::Result::PrimaryEmail",
42  { "foreign.email_id" => "self.email_id" },
43  { cascade_copy => 0, cascade_delete => 0 },
44);
45__PACKAGE__->belongs_to(
46  "user",
47  "Test2::Harness::UI::Schema::Result::User",
48  { user_id => "user_id" },
49  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
50);
51
52
53# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-10-26 13:48:31
54# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yFRWO28B5SkAeWL5FbhuUA
55
56
57# You can replace this text with custom code or comments, and it will be preserved on regeneration
581;
59