anyways thanks for pointing out that error, D1, very exciting stuff rather than using all this crazy
anyways thanks for pointing out that error, D1, very exciting stuff rather than using all this crazy logic i have written around KV storage


DROP TABLE IF EXISTS messages;
CREATE TABLE IF NOT EXISTS messages (
title TEXT NOT NULL,
body TEXT NOT NULL,
amount INTEGER NOT NULL,
color TEXT NOT NULL,
event_type TEXT NOT NULL,
e_id TEXT NOT NULL,
i_id TEXT NOT NULL, -- invoice id
o_id TEXT NOT NULL, --
s_id TEXT NOT NULL, -- subscription id
p_id TEXT NOT NULL, -- payment id
c_id TEXT NOT NULL, -- customer id
service TEXT NOT NULL,
email TEXT NOT NULL,
name TEXT NOT NULL,
link TEXT NOT NULL,
related_locations TEXT NOT NULL,
time_stamp INTEGER NOT NULL, -- time_stamp INTEGER NOT NULL DEFAULT CURRENT_TIMESTAMP,
customer_dismiss INTEGER, -- 0 or 1
location_id TEXT NOT NULL,
status TEXT NOT NULL, -- new or dismissed
status_type TEXT NOT NULL, -- notification /
other TEXT NOT NULL
);
DROP TABLE IF EXISTS messages;
CREATE TABLE IF NOT EXISTS messages (
title TEXT NOT NULL,
body TEXT NOT NULL,
amount INTEGER NOT NULL,
color TEXT NOT NULL,
event_type TEXT NOT NULL,
e_id TEXT NOT NULL,
i_id TEXT NOT NULL, -- invoice id
o_id TEXT NOT NULL, --
s_id TEXT NOT NULL, -- subscription id
p_id TEXT NOT NULL, -- payment id
c_id TEXT NOT NULL, -- customer id
service TEXT NOT NULL,
email TEXT NOT NULL,
name TEXT NOT NULL,
link TEXT NOT NULL,
related_locations TEXT NOT NULL,
time_stamp INTEGER NOT NULL, -- time_stamp INTEGER NOT NULL DEFAULT CURRENT_TIMESTAMP,
customer_dismiss INTEGER, -- 0 or 1
location_id TEXT NOT NULL,
status TEXT NOT NULL, -- new or dismissed
status_type TEXT NOT NULL, -- notification /
other TEXT NOT NULL
);