DROP TABLE IF EXISTS code_detail; CREATE TABLE IF NOT EXISTS code_detail( hash text PRIMARY KEY, type text, store text, value numeric, expiry timestamp, used bool );