-
Notifications
You must be signed in to change notification settings - Fork 4
DB model
nimf edited this page Jun 20, 2012
·
1 revision
Source and destination numbers` format is <number>.<TON>.<NPI> TON is (type of number) and NPI is (numbering plan identification)
-
idint(10) unsigned NOT NULL AUTO_INCREMENT -- received SMS ID -
srcvarchar(20) NOT NULL -- source number -
dstvarchar(20) NOT NULL -- destination number -
msgvarchar(2048) NOT NULL -- message body -
tsint(10) unsigned NOT NULL DEFAULT '0' -- unix timestamp of receiving SMS -
mttinyint(3) unsigned NOT NULL DEFAULT '0' -- message type (0 - SMS, 4 - delivery report)
-
idint(10) unsigned NOT NULL DEFAULT '0' -- received SMS ID -
srcvarchar(20) NOT NULL -- source number -
dstvarchar(20) NOT NULL -- destination number -
msgvarchar(2048) NOT NULL -- message body -
tsint(10) unsigned NOT NULL DEFAULT '0' -- unix timestamp of receiving SMS -
mttinyint(3) unsigned NOT NULL DEFAULT '0' -- message type (0 - SMS, 4 - delivery report) -
proc_tsint(10) unsigned NOT NULL DEFAULT '0' -- unix timestamp of processing this SMS by some service -
resp_idint(10) unsigned NOT NULL DEFAULT '0' -- ID of response SMS, created by service. If any -
srv_idtinyint(3) unsigned NOT NULL DEFAULT '0' -- ID of the service, which processed this SMS -
rslttinyint(3) NOT NULL DEFAULT '0' -- ID of processing result
-
idint(10) unsigned NOT NULL AUTO_INCREMENT -- sent SMS ID -
rel_idint(10) unsigned NOT NULL DEFAULT '0' -- related SMS (i. e. if it is a response to some received SMS). If any -
srcvarchar(20) NOT NULL -- source number -
dstvarchar(20) NOT NULL -- destination number -
msgvarchar(2048) NOT NULL -- message body -
tsint(10) unsigned NOT NULL DEFAULT '0' -- unix timestamp of putting this SMS into outbox -
rdtinyint(3) unsigned NOT NULL DEFAULT '0' -- request delivery (0 - no, 1 - yes) -
try_tsint(11) unsigned NOT NULL DEFAULT '0' -- unix timestamp of last sending attempt
-
idint(10) unsigned NOT NULL DEFAULT '0' -- sent SMS ID -
rel_idint(10) unsigned NOT NULL DEFAULT '0' -- related SMS (i. e. if it is a response to some received SMS). If any -
srcvarchar(20) NOT NULL -- source number -
dstvarchar(20) NOT NULL -- destination number -
msgvarchar(2048) NOT NULL -- message body -
tsint(10) unsigned NOT NULL DEFAULT '0' -- unix timestamp of putting this SMS into outbox -
rdtinyint(3) unsigned NOT NULL DEFAULT '0' -- request delivery (0 - no, 1 - yes) -
snt_tsint(10) unsigned NOT NULL DEFAULT '0' -- unix timestamp of sending SMS -
msg_idvarchar(50) NOT NULL DEFAULT '' -- message ID from SMSC -
dl_tsint(10) unsigned DEFAULT NULL -- unix timestamp of SMS delivery (from delivery report) -
dl_stattinyint(3) unsigned DEFAULT NULL -- delivery status
-
srcchar(20) NOT NULL -- source number -
dstchar(20) NOT NULL -- destination number -
msgchar(255) NOT NULL -- message part body -
tsint(10) unsigned NOT NULL DEFAULT '0' -- unix timestamp of receiving this part -
refsmallint(6) unsigned NOT NULL -- reference (for identifying parts of SMS) -
pntinyint(4) unsigned NOT NULL -- part number -
tptinyint(4) unsigned NOT NULL -- total parts count
-
idint(11) unsigned NOT NULL -- service ID (you define) -
namechar(255) NOT NULL -- service name -
exported_idint(11) unsigned NOT NULL -- for data extractions. optional
-
srv_idint(11) unsigned NOT NULL -- service ID -
codetinyint(3) NOT NULL DEFAULT '0' -- numeric result code (you define) -
dscchar(255) NOT NULL -- description
-
tsint(11) unsigned NOT NULL DEFAULT '0' -- unix timestamp -
recint(11) unsigned NOT NULL DEFAULT '0' -- received SMS count -
sentint(11) unsigned NOT NULL DEFAULT '0' -- sent SMS count