1use utf8;
2package Test2::Harness::UI::Schema::Result::Project;
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("projects");
19__PACKAGE__->add_columns(
20  "project_id",
21  { data_type => "char", is_nullable => 0, size => 36 },
22  "name",
23  { data_type => "varchar", is_nullable => 0, size => 128 },
24);
25__PACKAGE__->set_primary_key("project_id");
26__PACKAGE__->add_unique_constraint("name", ["name"]);
27__PACKAGE__->has_many(
28  "permissions",
29  "Test2::Harness::UI::Schema::Result::Permission",
30  { "foreign.project_id" => "self.project_id" },
31  { cascade_copy => 0, cascade_delete => 0 },
32);
33__PACKAGE__->has_many(
34  "runs",
35  "Test2::Harness::UI::Schema::Result::Run",
36  { "foreign.project_id" => "self.project_id" },
37  { cascade_copy => 0, cascade_delete => 0 },
38);
39
40
41# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-10-26 13:48:31
42# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:58eaGL8+8CKlejthKje5og
43
44
45# You can replace this text with custom code or comments, and it will be preserved on regeneration
461;
47