]> Dogcows Code - chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate/blobdiff - t/lib/DBSchema/Result/Tag.pm
Initial
[chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate] / t / lib / DBSchema / Result / Tag.pm
diff --git a/t/lib/DBSchema/Result/Tag.pm b/t/lib/DBSchema/Result/Tag.pm
new file mode 100644 (file)
index 0000000..5ec084c
--- /dev/null
@@ -0,0 +1,34 @@
+package DBSchema::Result::Tag;
+
+# Created by DBIx::Class::Schema::Loader v0.03000 @ 2006-10-02 08:24:09
+
+use strict;
+use warnings;
+
+use base 'DBIx::Class';
+use overload '""' => sub {$_[0]->name}, fallback => 1;
+
+__PACKAGE__->load_components("PK::Auto", "Core");
+__PACKAGE__->table("tag");
+__PACKAGE__->add_columns(
+    "id" => {
+    data_type => 'integer',
+    is_auto_increment => 1
+  },
+  'name' => {
+    data_type => 'varchar',
+    size      => 100,
+    is_nullable => 1,
+  },
+  'file' => {
+    data_type => 'text',
+    is_nullable => 1,
+  }
+);
+    
+__PACKAGE__->set_primary_key("id");
+__PACKAGE__->has_many("dvdtags", "Dvdtag", { "foreign.tag" => "self.id" });
+__PACKAGE__->many_to_many('dvds', 'dvdtags' => 'dvd');
+
+1;
+
This page took 0.018968 seconds and 4 git commands to generate.