fix message

This commit is contained in:
CHIEFSOFT\ameye
2025-02-18 07:57:39 -05:00
parent 63bbee3529
commit 992e4079fe
2 changed files with 28 additions and 2 deletions
+20 -1
View File
@@ -81,13 +81,32 @@ CREATE TABLE loan_apply (
loan VARCHAR(25) NOT NULL,
bvn VARCHAR(12) NOT NULL,
amount INT DEFAULT 0,
added timestamp without time zone DEFAULT now()
added timestamp without time zone DEFAULT now(),
verified timestamp
);
ALTER TABLE ONLY loan_apply
ADD CONSTRAINT loan_apply_id_key UNIQUE (id);
CREATE TABLE loans (
id SERIAL,
uid uuid DEFAULT uuid_generate_v4(),
bvn VARCHAR(12) NOT NULL,
loan VARCHAR(25) REFERENCES loan_offers (loan),
approved_amount INT DEFAULT 0,
initial_deduction INT DEFAULT 0,
days_duration INT DEFAULT 0,
added timestamp without time zone DEFAULT now(),
due_date timestamp
);
ALTER TABLE ONLY loans
ADD CONSTRAINT loans_id_key UNIQUE (id);
--- ALTER TABLE loan_apply ADD verified timestamp;
{"cid": "425611f2-c692-4404-b93d-76ca7a5ce00", "description": "100,000 Naira for 30 Days" , "active" : 1 },
{"cid": "425611f2-c692-4404-b93d-76ca7a5ce01", "description": "300,000 Naira for 60 Days" , "active" : 1 },
{"cid": "425611f2-c692-4404-b93d-76ca7a5ce02", "description": "900,000 Naira for 90 Days" , "active" : 1 },