use utf8; package My::Mailserver::Schema::Result::RecoveryCode; # Created by DBIx::Class::Schema::Loader # DO NOT MODIFY THE FIRST PART OF THIS FILE =head1 NAME My::Mailserver::Schema::Result::RecoveryCode =cut use strict; use warnings; use base 'DBIx::Class::Core'; =head1 TABLE: C =cut __PACKAGE__->table("recovery_codes"); =head1 ACCESSORS =head2 id data_type: 'integer' is_auto_increment: 1 is_nullable: 0 =head2 user_id data_type: 'integer' is_foreign_key: 1 is_nullable: 0 =head2 code data_type: 'varchar' is_nullable: 0 size: 255 =head2 created data_type: 'timestamp' datetime_undef_if_invalid: 1 default_value: 'current_timestamp()' is_nullable: 0 =cut __PACKAGE__->add_columns( "id", { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, "user_id", { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, "code", { data_type => "varchar", is_nullable => 0, size => 255 }, "created", { data_type => "timestamp", datetime_undef_if_invalid => 1, default_value => "current_timestamp()", is_nullable => 0, }, ); =head1 PRIMARY KEY =over 4 =item * L =back =cut __PACKAGE__->set_primary_key("id"); =head1 UNIQUE CONSTRAINTS =head2 C =over 4 =item * L =back =cut __PACKAGE__->add_unique_constraint("code", ["code"]); =head1 RELATIONS =head2 user Type: belongs_to Related object: L =cut __PACKAGE__->belongs_to( "user", "My::Mailserver::Schema::Result::VirtualUser", { id => "user_id" }, { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" }, ); # Created by DBIx::Class::Schema::Loader v0.07049 @ 2019-06-17 02:39:38 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UeAp7iDyLd6gYYoanmZEfg # You can replace this text with custom code or comments, and it will be preserved on regeneration 1;