Projekt

Allgemein

Profil

Herunterladen (1,77 KB) Statistiken
| Zweig: | Markierung: | Revision:
f97b0778 Sven Schöling
# This file has been auto-generated. Do not modify it; it will be overwritten
# by rose_auto_create_model.pl automatically.
package SL::DB::AccTransaction;

use strict;

2ea07c13 Sven Schöling
use parent qw(SL::DB::Object);
f97b0778 Sven Schöling
b8b112a3 Sven Schöling
__PACKAGE__->meta->table('acc_trans');

__PACKAGE__->meta->columns(
acc_trans_id => { type => 'bigint', not_null => 1, sequence => 'acc_trans_id_seq' },
a3511b2d Moritz Bunkus
amount => { type => 'numeric', precision => 15, scale => 5 },
3eb3d1b1 Moritz Bunkus
cb_transaction => { type => 'boolean', default => 'false', not_null => 1 },
chart_id => { type => 'integer', not_null => 1 },
chart_link => { type => 'text', not_null => 1 },
b8b112a3 Sven Schöling
cleared => { type => 'boolean', default => 'false', not_null => 1 },
fx_transaction => { type => 'boolean', default => 'false', not_null => 1 },
3eb3d1b1 Moritz Bunkus
gldate => { type => 'date', default => 'now' },
b8b112a3 Sven Schöling
itime => { type => 'timestamp', default => 'now()' },
3eb3d1b1 Moritz Bunkus
memo => { type => 'text' },
b8b112a3 Sven Schöling
mtime => { type => 'timestamp' },
3eb3d1b1 Moritz Bunkus
ob_transaction => { type => 'boolean', default => 'false', not_null => 1 },
project_id => { type => 'integer' },
source => { type => 'text' },
b8b112a3 Sven Schöling
tax_id => { type => 'integer', not_null => 1 },
3eb3d1b1 Moritz Bunkus
taxkey => { type => 'integer' },
trans_id => { type => 'integer', not_null => 1 },
transdate => { type => 'date', default => 'now' },
f97b0778 Sven Schöling
);

b8b112a3 Sven Schöling
__PACKAGE__->meta->primary_key_columns([ 'acc_trans_id' ]);

__PACKAGE__->meta->allow_inline_column_values(1);

__PACKAGE__->meta->foreign_keys(
chart => {
class => 'SL::DB::Chart',
key_columns => { chart_id => 'id' },
},

project => {
class => 'SL::DB::Project',
key_columns => { project_id => 'id' },
},

tax => {
class => 'SL::DB::Tax',
key_columns => { tax_id => 'id' },
},
);

f97b0778 Sven Schöling
1;
;