CAlendar data

This commit is contained in:
CHIEFSOFT\ameye
2025-07-26 13:48:02 -04:00
parent 95fe007cbc
commit 54e8a69eb6
2 changed files with 17 additions and 5 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ CREATE TABLE member_product_refresh(
uid uuid DEFAULT uuid_generate_v4(), uid uuid DEFAULT uuid_generate_v4(),
member_id INT REFERENCES members(id), member_id INT REFERENCES members(id),
product_id VARCHAR(25) NOT NULL, product_id VARCHAR(25) NOT NULL,
subscription_uid VARCHAR(100) UNIQUE NOT NULL, subscription_uid VARCHAR(100) NOT NULL,
status INT DEFAULT 0, status INT DEFAULT 0,
added timestamp without time zone DEFAULT now(), added timestamp without time zone DEFAULT now(),
updated timestamp without time zone DEFAULT now() updated timestamp without time zone DEFAULT now()
+16 -4
View File
@@ -164,10 +164,22 @@ class AccountService(BaseService):
calendar_data = { calendar_data = {
"last_update": datetime.datetime.utcnow(), "last_update": datetime.datetime.utcnow(),
"category": [ "category": [
{"cid": "1", "description": "category 01"}, {
{"cid": "2", "description": "category 02"}, "cid": "1",
{"cid": "3", "description": "category 03"}, "description": "Health Check"
{"cid": "4", "description": "category 04"}, },
{
"cid": "2",
"description": "Product Updates"
},
{
"cid": "3",
"description": "Provisioning"
},
{
"cid": "4",
"description": "Contacts"
}
], ],
"list": dList "list": dList
} }