-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
173 changed files
with
14,194 additions
and
1,487 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
use utf8; | ||
package App::Yath::Schema::MariaDB::ApiKey; | ||
our $VERSION = '2.000000'; | ||
|
||
package | ||
App::Yath::Schema::Result::ApiKey; | ||
|
||
# Created by DBIx::Class::Schema::Loader | ||
# DO NOT MODIFY ANY PART OF THIS FILE | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use parent 'App::Yath::Schema::ResultBase'; | ||
__PACKAGE__->load_components( | ||
"InflateColumn::DateTime", | ||
"InflateColumn::Serializer", | ||
"InflateColumn::Serializer::JSON", | ||
"UUIDColumns", | ||
); | ||
__PACKAGE__->table("api_keys"); | ||
__PACKAGE__->add_columns( | ||
"value", | ||
{ data_type => "uuid", is_nullable => 0 }, | ||
"api_key_id", | ||
{ data_type => "bigint", is_auto_increment => 1, is_nullable => 0 }, | ||
"user_id", | ||
{ data_type => "bigint", is_foreign_key => 1, is_nullable => 0 }, | ||
"status", | ||
{ | ||
data_type => "enum", | ||
default_value => "active", | ||
extra => { list => ["active", "disabled", "revoked"] }, | ||
is_nullable => 0, | ||
}, | ||
"name", | ||
{ data_type => "varchar", is_nullable => 0, size => 128 }, | ||
); | ||
__PACKAGE__->set_primary_key("api_key_id"); | ||
__PACKAGE__->add_unique_constraint("value", ["value"]); | ||
__PACKAGE__->belongs_to( | ||
"user", | ||
"App::Yath::Schema::Result::User", | ||
{ user_id => "user_id" }, | ||
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" }, | ||
); | ||
|
||
|
||
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-06-03 19:08:09 | ||
# DO NOT MODIFY ANY PART OF THIS FILE | ||
|
||
1; | ||
|
||
__END__ | ||
=pod | ||
=encoding UTF-8 | ||
=head1 NAME | ||
App::Yath::Schema::MariaDB::ApiKey - Autogenerated result class for ApiKey in MariaDB. | ||
=head1 SOURCE | ||
The source code repository for Test2-Harness can be found at | ||
L<http://github.com/Test-More/Test2-Harness/>. | ||
=head1 MAINTAINERS | ||
=over 4 | ||
=item Chad Granum E<lt>exodist@cpan.orgE<gt> | ||
=back | ||
=head1 AUTHORS | ||
=over 4 | ||
=item Chad Granum E<lt>exodist@cpan.orgE<gt> | ||
=back | ||
=head1 COPYRIGHT | ||
Copyright Chad Granum E<lt>exodist7@gmail.comE<gt>. | ||
This program is free software; you can redistribute it and/or | ||
modify it under the same terms as Perl itself. | ||
See L<http://dev.perl.org/licenses/> | ||
=cut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
use utf8; | ||
package App::Yath::Schema::MariaDB::Binary; | ||
our $VERSION = '2.000000'; | ||
|
||
package | ||
App::Yath::Schema::Result::Binary; | ||
|
||
# Created by DBIx::Class::Schema::Loader | ||
# DO NOT MODIFY ANY PART OF THIS FILE | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use parent 'App::Yath::Schema::ResultBase'; | ||
__PACKAGE__->load_components( | ||
"InflateColumn::DateTime", | ||
"InflateColumn::Serializer", | ||
"InflateColumn::Serializer::JSON", | ||
"UUIDColumns", | ||
); | ||
__PACKAGE__->table("binaries"); | ||
__PACKAGE__->add_columns( | ||
"event_uuid", | ||
{ data_type => "uuid", is_nullable => 0 }, | ||
"binary_id", | ||
{ data_type => "bigint", is_auto_increment => 1, is_nullable => 0 }, | ||
"event_id", | ||
{ data_type => "bigint", is_foreign_key => 1, is_nullable => 1 }, | ||
"is_image", | ||
{ data_type => "tinyint", default_value => 0, is_nullable => 0 }, | ||
"filename", | ||
{ data_type => "varchar", is_nullable => 0, size => 512 }, | ||
"description", | ||
{ data_type => "text", is_nullable => 1 }, | ||
"data", | ||
{ data_type => "longblob", is_nullable => 0 }, | ||
); | ||
__PACKAGE__->set_primary_key("binary_id"); | ||
__PACKAGE__->belongs_to( | ||
"event", | ||
"App::Yath::Schema::Result::Event", | ||
{ event_id => "event_id" }, | ||
{ | ||
is_deferrable => 1, | ||
join_type => "LEFT", | ||
on_delete => "CASCADE", | ||
on_update => "RESTRICT", | ||
}, | ||
); | ||
|
||
|
||
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-06-03 19:08:09 | ||
# DO NOT MODIFY ANY PART OF THIS FILE | ||
|
||
1; | ||
|
||
__END__ | ||
=pod | ||
=encoding UTF-8 | ||
=head1 NAME | ||
App::Yath::Schema::MariaDB::Binary - Autogenerated result class for Binary in MariaDB. | ||
=head1 SOURCE | ||
The source code repository for Test2-Harness can be found at | ||
L<http://github.com/Test-More/Test2-Harness/>. | ||
=head1 MAINTAINERS | ||
=over 4 | ||
=item Chad Granum E<lt>exodist@cpan.orgE<gt> | ||
=back | ||
=head1 AUTHORS | ||
=over 4 | ||
=item Chad Granum E<lt>exodist@cpan.orgE<gt> | ||
=back | ||
=head1 COPYRIGHT | ||
Copyright Chad Granum E<lt>exodist7@gmail.comE<gt>. | ||
This program is free software; you can redistribute it and/or | ||
modify it under the same terms as Perl itself. | ||
See L<http://dev.perl.org/licenses/> | ||
=cut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
use utf8; | ||
package App::Yath::Schema::MariaDB::Config; | ||
our $VERSION = '2.000000'; | ||
|
||
package | ||
App::Yath::Schema::Result::Config; | ||
|
||
# Created by DBIx::Class::Schema::Loader | ||
# DO NOT MODIFY ANY PART OF THIS FILE | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use parent 'App::Yath::Schema::ResultBase'; | ||
__PACKAGE__->load_components( | ||
"InflateColumn::DateTime", | ||
"InflateColumn::Serializer", | ||
"InflateColumn::Serializer::JSON", | ||
"UUIDColumns", | ||
); | ||
__PACKAGE__->table("config"); | ||
__PACKAGE__->add_columns( | ||
"config_id", | ||
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||
"setting", | ||
{ data_type => "varchar", is_nullable => 0, size => 128 }, | ||
"value", | ||
{ data_type => "varchar", is_nullable => 0, size => 256 }, | ||
); | ||
__PACKAGE__->set_primary_key("config_id"); | ||
__PACKAGE__->add_unique_constraint("setting", ["setting"]); | ||
|
||
|
||
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-06-03 19:08:09 | ||
# DO NOT MODIFY ANY PART OF THIS FILE | ||
|
||
1; | ||
|
||
__END__ | ||
=pod | ||
=encoding UTF-8 | ||
=head1 NAME | ||
App::Yath::Schema::MariaDB::Config - Autogenerated result class for Config in MariaDB. | ||
=head1 SOURCE | ||
The source code repository for Test2-Harness can be found at | ||
L<http://github.com/Test-More/Test2-Harness/>. | ||
=head1 MAINTAINERS | ||
=over 4 | ||
=item Chad Granum E<lt>exodist@cpan.orgE<gt> | ||
=back | ||
=head1 AUTHORS | ||
=over 4 | ||
=item Chad Granum E<lt>exodist@cpan.orgE<gt> | ||
=back | ||
=head1 COPYRIGHT | ||
Copyright Chad Granum E<lt>exodist7@gmail.comE<gt>. | ||
This program is free software; you can redistribute it and/or | ||
modify it under the same terms as Perl itself. | ||
See L<http://dev.perl.org/licenses/> | ||
=cut |
Oops, something went wrong.