| 10 | | __PACKAGE__->load_components("PK::Auto", "Core"); |
| 11 | | __PACKAGE__->table("gallery"); |
| 12 | | __PACKAGE__->add_columns( |
| 13 | | "id", |
| 14 | | "creatorid", |
| 15 | | "filename", |
| 16 | | "uploaderid", |
| 17 | | "approverid", |
| 18 | | "time", |
| 19 | | "hash", |
| 20 | | "title", |
| 21 | | "description", |
| 22 | | "height", |
| 23 | | "width", |
| 24 | | "seriesid", |
| 25 | | "position", |
| 26 | | "type", |
| 27 | | ); |
| 28 | | __PACKAGE__->set_primary_key("id"); |
| 29 | | __PACKAGE__->add_unique_constraint("filename", ["filename"]); |
| 30 | | __PACKAGE__->add_unique_constraint(["filename"], undef); |
| 31 | | __PACKAGE__->add_unique_constraint(["id"], undef); |
| | 7 | =head1 NAME |
| | 8 | |
| | 9 | Vee::Schema::Gallery - DBIC class for the C<gallery> table |
| | 10 | |
| | 11 | =cut |
| | 12 | |
| | 13 | __PACKAGE__->load_components('Core'); |
| | 14 | __PACKAGE__->table('gallery'); |
| | 15 | __PACKAGE__->add_columns(qw/ |
| | 16 | id |
| | 17 | creatorid |
| | 18 | filename |
| | 19 | uploaderid |
| | 20 | approverid |
| | 21 | time |
| | 22 | hash |
| | 23 | title |
| | 24 | description |
| | 25 | height |
| | 26 | width |
| | 27 | seriesid |
| | 28 | position |
| | 29 | type |
| | 30 | /); |
| | 31 | __PACKAGE__->set_primary_key('id'); |
| | 32 | __PACKAGE__->add_unique_constraint(filename => ['filename']); |
| | 33 | |
| | 34 | =head1 SEE ALSO |
| | 35 | |
| | 36 | L<Vee::Schema>, L<DBIx::Class> |
| | 37 | |
| | 38 | =head1 AUTHOR |
| | 39 | |
| | 40 | Maintainer: Alex "Eevee" Munroe (C<veekun@veekun.com>) |
| | 41 | |
| | 42 | See the included F<AUTHORS> file for a full list of contributers. |
| | 43 | |
| | 44 | =head1 LICENSE |
| | 45 | |
| | 46 | See the included F<LICENSE> file. |
| | 47 | |
| | 48 | =cut |