Skip to content

NotifyRecord

NotifyRecord

Field Type Description
id int Autoincrement in DB
user_id int Manager ID or Account login (default = 0)
token string Unique token
message string Notification message in AST format
description string Notification description in AST format
data string Additional data in AST/JSON format (optional)
create_time time_t Time when the notification was created
open_time time_t Time when the notification was opened
update_time time_t Time when the notification was last updated
level int Message level: INFO, WARNING, ERROR, PROMO, MARKETING, NEWS
type int Message type: AST_MSG, TXT_MSG, TOKEN_MSG, AST_DESC
access int Access scope: MANAGER, CLIENT, CLIENT_BROADCAST, MANAGER_BROADCAST
status int Status: WAITING, SENT, READ, FAILED, DELIVERED, DELETED

Enums

level

  • 10 — INFO
  • 20 — WARNING
  • 30 — ERROR
  • 40 — PROMO
  • 50 — MARKETING
  • 60 — NEWS

type

  • 1 — AST_MSG
  • 2 — TXT_MSG
  • 3 — TOKEN_MSG
  • 4 — AST_DESC

access

  • 1 — MANAGER
  • 2 — CLIENT
  • 3 — CLIENT_BROADCAST
  • 4 — MANAGER_BROADCAST

status

  • 0 — WAITING
  • 1 — SENT
  • 2 — READ
  • 3 — FAILED
  • 4 — DELIVERED
  • 5 — DELETED