1use utf8;
2package Test2::Harness::UI::Schema::Result::SessionHost;
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("session_hosts");
19__PACKAGE__->add_columns(
20  "session_host_id",
21  { data_type => "char", is_nullable => 0, size => 36 },
22  "session_id",
23  { data_type => "char", is_foreign_key => 1, is_nullable => 0, size => 36 },
24  "user_id",
25  { data_type => "char", is_foreign_key => 1, is_nullable => 1, size => 36 },
26  "created",
27  {
28    data_type => "timestamp",
29    datetime_undef_if_invalid => 1,
30    default_value => \"current_timestamp",
31    is_nullable => 0,
32  },
33  "accessed",
34  {
35    data_type => "timestamp",
36    datetime_undef_if_invalid => 1,
37    default_value => \"current_timestamp",
38    is_nullable => 0,
39  },
40  "address",
41  { data_type => "varchar", is_nullable => 0, size => 128 },
42  "agent",
43  { data_type => "varchar", is_nullable => 0, size => 128 },
44);
45__PACKAGE__->set_primary_key("session_host_id");
46__PACKAGE__->add_unique_constraint("session_id", ["session_id", "address", "agent"]);
47__PACKAGE__->belongs_to(
48  "session",
49  "Test2::Harness::UI::Schema::Result::Session",
50  { session_id => "session_id" },
51  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
52);
53__PACKAGE__->belongs_to(
54  "user",
55  "Test2::Harness::UI::Schema::Result::User",
56  { user_id => "user_id" },
57  {
58    is_deferrable => 1,
59    join_type     => "LEFT",
60    on_delete     => "RESTRICT",
61    on_update     => "RESTRICT",
62  },
63);
64
65
66# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-10-26 13:48:31
67# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tCKHWPMmC9Etdi2SwZ8afA
68
69
70# You can replace this text with custom code or comments, and it will be preserved on regeneration
711;
72