]> Dogcows Code - chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate/blob - t/lib/DBSchema/Result/Tag.pm
Initial
[chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate] / t / lib / DBSchema / Result / Tag.pm
1 package DBSchema::Result::Tag;
2
3 # Created by DBIx::Class::Schema::Loader v0.03000 @ 2006-10-02 08:24:09
4
5 use strict;
6 use warnings;
7
8 use base 'DBIx::Class';
9 use overload '""' => sub {$_[0]->name}, fallback => 1;
10
11 __PACKAGE__->load_components("PK::Auto", "Core");
12 __PACKAGE__->table("tag");
13 __PACKAGE__->add_columns(
14 "id" => {
15 data_type => 'integer',
16 is_auto_increment => 1
17 },
18 'name' => {
19 data_type => 'varchar',
20 size => 100,
21 is_nullable => 1,
22 },
23 'file' => {
24 data_type => 'text',
25 is_nullable => 1,
26 }
27 );
28
29 __PACKAGE__->set_primary_key("id");
30 __PACKAGE__->has_many("dvdtags", "Dvdtag", { "foreign.tag" => "self.id" });
31 __PACKAGE__->many_to_many('dvds', 'dvdtags' => 'dvd');
32
33 1;
34
This page took 0.029952 seconds and 4 git commands to generate.