E-Mail-Journal: verschickte E-Mails speichern
[kivitendo-erp.git] / SL / DB / EmailJournal.pm
diff --git a/SL/DB/EmailJournal.pm b/SL/DB/EmailJournal.pm
new file mode 100644 (file)
index 0000000..6875b52
--- /dev/null
@@ -0,0 +1,18 @@
+package SL::DB::EmailJournal;
+
+use strict;
+
+use SL::DB::MetaSetup::EmailJournal;
+use SL::DB::Manager::EmailJournal;
+
+__PACKAGE__->meta->add_relationship(
+  attachments  => {
+    type       => 'one to many',
+    class      => 'SL::DB::EmailJournalAttachment',
+    column_map => { id => 'email_journal_id' },
+  },
+);
+
+__PACKAGE__->meta->initialize;
+
+1;