calls_9.3.5.sql 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. ZCALLTYPE INTEGER,
  17. ZDISCONNECTED_CAUSE INTEGER,
  18. ZFACE_TIME_DATA INTEGER,
  19. ZNUMBER_AVAILABILITY INTEGER,
  20. ZORIGINATED INTEGER,
  21. ZREAD INTEGER,
  22. ZDATE TIMESTAMP,
  23. ZDURATION FLOAT,
  24. ZDEVICE_ID VARCHAR,
  25. ZISO_COUNTRY_CODE VARCHAR,
  26. ZLOCATION VARCHAR,
  27. ZNAME VARCHAR,
  28. ZUNIQUE_ID VARCHAR UNIQUE,
  29. ZADDRESS BLOB
  30. );
  31. CREATE INDEX ZCALLRECORD_ZDATE_INDEX ON ZCALLRECORD (ZDATE);
  32. CREATE TABLE Z_PRIMARYKEY (
  33. Z_ENT INTEGER PRIMARY KEY,
  34. Z_NAME VARCHAR,
  35. Z_SUPER INTEGER,
  36. Z_MAX INTEGER
  37. );
  38. CREATE TABLE Z_METADATA (
  39. Z_VERSION INTEGER PRIMARY KEY,
  40. Z_UUID VARCHAR(255),
  41. Z_PLIST BLOB
  42. );
  43. CREATE TABLE Z_MODELCACHE (Z_CONTENT BLOB);