-- 1527534504 UP create-default-expense-account

alter table vendors add column default_expense_account INT;

create table invoices_expense_accounts (id serial primary key, invoice_id int references invoices(id), expense_account_id int not null, amount decimal not null);


update vendors set default_expense_account = 0;
