add contacts rourtes

This commit is contained in:
CHIEFSOFT\ameye
2025-09-14 06:37:41 -04:00
parent f3d81e662e
commit 52a0a72702
4 changed files with 84 additions and 38 deletions
+28
View File
@@ -635,6 +635,34 @@ ALTER TABLE ONLY office_users
ALTER TABLE office_users OWNER TO merms_panel;
CREATE TABLE products_contacts(
id SERIAL,
uid uuid DEFAULT uuid_generate_v4(),
username VARCHAR(25) UNIQUE NOT NULL,
product_id VARCHAR(25) NOT NULL,
subscription_uid VARCHAR(100) NOT NULL,
title VARCHAR(100) NOT NULL,
sender VARCHAR(120) NOT NULL,
message TEXT,
status INT DEFAULT 0,
added timestamp without time zone DEFAULT now()
);
ALTER TABLE ONLY products_contacts
ADD CONSTRAINT products_contacts_id_key UNIQUE (id);
ALTER TABLE products_contacts OWNER TO merms_panel;
new_l = {
"uid": "425611f2-c692-4404-b93d-76ca7a5ce7" + str(x),
"title": "Contact Random Item on " + str(x),
"category": cat_list[random.randint(0, 3)],
"added": calDate,
"sender": "Firstname Lastname" + str(random.randint(1, 4)),
"message": dummy_message()
}