calls_11.2.sql 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. CREATE TABLE ZCALLDBPROPERTIES (
  2. Z_PK INTEGER PRIMARY KEY,
  3. Z_ENT INTEGER,
  4. Z_OPT INTEGER,
  5. ZTIMER_ALL FLOAT,
  6. ZTIMER_INCOMING FLOAT,
  7. ZTIMER_LAST FLOAT,
  8. ZTIMER_LIFETIME FLOAT,
  9. ZTIMER_OUTGOING FLOAT
  10. );
  11. CREATE TABLE ZCALLRECORD (
  12. Z_PK INTEGER PRIMARY KEY,
  13. Z_ENT INTEGER,
  14. Z_OPT INTEGER,
  15. ZANSWERED INTEGER,
  16. ZCALL_CATEGORY INTEGER,
  17. ZCALLTYPE INTEGER,
  18. ZDISCONNECTED_CAUSE INTEGER,
  19. ZFACE_TIME_DATA INTEGER,
  20. ZHANDLE_TYPE INTEGER,
  21. ZNUMBER_AVAILABILITY INTEGER,
  22. ZORIGINATED INTEGER,
  23. ZREAD INTEGER,
  24. ZDATE TIMESTAMP,
  25. ZDURATION FLOAT,
  26. ZDEVICE_ID VARCHAR,
  27. ZISO_COUNTRY_CODE VARCHAR,
  28. ZLOCATION VARCHAR,
  29. ZNAME VARCHAR,
  30. ZSERVICE_PROVIDER VARCHAR,
  31. ZUNIQUE_ID VARCHAR UNIQUE,
  32. ZADDRESS BLOB
  33. );
  34. CREATE INDEX Z_CallRecord_date ON ZCALLRECORD (ZDATE COLLATE BINARY ASC);
  35. CREATE TABLE Z_PRIMARYKEY (
  36. Z_ENT INTEGER PRIMARY KEY,
  37. Z_NAME VARCHAR,
  38. Z_SUPER INTEGER,
  39. Z_MAX INTEGER
  40. );
  41. CREATE TABLE Z_METADATA (
  42. Z_VERSION INTEGER PRIMARY KEY,
  43. Z_UUID VARCHAR(255),
  44. Z_PLIST BLOB
  45. );
  46. CREATE TABLE Z_MODELCACHE (Z_CONTENT BLOB);