diff --git a/postgres/tables/accounts.sql b/postgres/tables/accounts.sql new file mode 100644 index 0000000..c30668e --- /dev/null +++ b/postgres/tables/accounts.sql @@ -0,0 +1,19 @@ +drop table if exists public.accounts; + +CREATE TABLE public.accounts( + acct_id serial, + bank_name varchar(50) not null, + account_type varchar(50) not null, + account_number varchar(20) null, + friendly_name varchar(50) null, + insert_dt_tm timestamp default now(), + PRIMARY KEY( acct_id ) +); + +INSERT INTO public.accounts (bank_name, account_type, friendly_name) values +('Bank of America', 'Checking', 'Joint Checking') +, ('Ally', 'Savings', 'Joint Savings') +, ('Ally', 'Savings', 'Vacation Savings') + +select * from public.accounts a +