added query support
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
CREATE DATABASE salaryloan;
|
||||
CREATE user salaryloan with encrypted password 'salaryloan';
|
||||
GRANT all privileges on database salaryloan to salaryloan;
|
||||
|
||||
CREATE TABLE demo_bank_accounts (
|
||||
id SERIAL,
|
||||
uid uuid DEFAULT uuid_generate_v4(),
|
||||
name VARCHAR(125),
|
||||
offers INT DEFAULT 0,
|
||||
salary_account INT DEFAULT 0,
|
||||
current_loans INT DEFAULT 0,
|
||||
mobile VARCHAR(25) UNIQUE NOT NULL,
|
||||
bvn VARCHAR(12) UNIQUE NOT NULL,
|
||||
email VARCHAR(125),
|
||||
pin VARCHAR(6),
|
||||
added timestamp without time zone DEFAULT now()
|
||||
);
|
||||
ALTER TABLE ONLY demo_bank_accounts
|
||||
ADD CONSTRAINT demo_bank_accounts_id_key UNIQUE (id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user