calls_10.3.3.sql 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 ZCALLRECORD_ZDATE_INDEX ON ZCALLRECORD (ZDATE);
  35. CREATE TABLE Z_PRIMARYKEY (
  36. Z_ENT INTEGER PRIMARY KEY,
  37. Z_NAME VARCHAR,
  38. Z_SUPER INTEGER,
  39. Z_MAX INTEGER);
  40. CREATE TABLE Z_METADATA (
  41. Z_VERSION INTEGER PRIMARY KEY,
  42. Z_UUID VARCHAR(255),
  43. Z_PLIST BLOB
  44. );
  45. CREATE TABLE Z_MODELCACHE (Z_CONTENT BLOB);