Projekt

Allgemein

Profil

Herunterladen (1,79 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;

use base qw(SL::DB::Object);

__PACKAGE__->meta->setup(
table => 'acc_trans',

columns => [
68525bb1 Moritz Bunkus
acc_trans_id => { type => 'bigint', not_null => 1, sequence => 'acc_trans_id_seq' },
f97b0778 Sven Schöling
trans_id => { type => 'integer', not_null => 1 },
chart_id => { type => 'integer', not_null => 1 },
amount => { type => 'numeric', precision => 5, scale => 15 },
transdate => { type => 'date', default => 'now' },
gldate => { type => 'date', default => 'now' },
source => { type => 'text' },
95f559de Sven Schöling
cleared => { type => 'boolean', default => 'false', not_null => 1 },
fx_transaction => { type => 'boolean', default => 'false', not_null => 1 },
ob_transaction => { type => 'boolean', default => 'false', not_null => 1 },
cb_transaction => { type => 'boolean', default => 'false', not_null => 1 },
f97b0778 Sven Schöling
project_id => { type => 'integer' },
memo => { type => 'text' },
taxkey => { type => 'integer' },
itime => { type => 'timestamp', default => 'now()' },
mtime => { type => 'timestamp' },
03ff37cb Niclas Zimmermann
tax_id => { type => 'integer', not_null => 1 },
3af5e2e0 Niclas Zimmermann
chart_link => { type => 'text', not_null => 1 },
f97b0778 Sven Schöling
],

68525bb1 Moritz Bunkus
primary_key_columns => [ 'acc_trans_id' ],
f97b0778 Sven Schöling
95f559de Sven Schöling
allow_inline_column_values => 1,

f97b0778 Sven Schöling
foreign_keys => [
chart => {
class => 'SL::DB::Chart',
key_columns => { chart_id => 'id' },
},

project => {
class => 'SL::DB::Project',
key_columns => { project_id => 'id' },
},
3af5e2e0 Niclas Zimmermann
tax => {
class => 'SL::DB::Tax',
key_columns => { tax_id => 'id' },
},
f97b0778 Sven Schöling
],
);

1;
;