           record_id           character varying,
           record_id_type      character varying,
           record_operation    character varying,
-          record_status       character varying
+          record_status       character varying,
+          CONSTRAINT coils_realtime_log_pkey PRIMARY KEY (id)
           );
           "
           (= *database-type* "oracle" )

          "
          CREATE TABLE coils_triggers
          (
          id serial NOT NULL,
          table_name character varying,
          version character varying
          );
          "















(defn make-applications-table []
  (let [sql-to-create-applications-table
        (cond
          (= *database-type* "postgres" )
          "
          CREATE TABLE coils_applications
          (
          id character varying NOT NULL,
          CONSTRAINT coils_applications_users_pkey PRIMARY KEY (id)
          );
          "

          (= *database-type* "oracle" )
          "
          CREATE TABLE coils_applications
          (id                 NUMBER GENERATED BY DEFAULT ON NULL AS IDENTITY,
          CONSTRAINT  COILS_APPLICATIONS_PK PRIMARY KEY (ID)
          )")
        ]

    (if (not (does-table-exist  "coils_applications"))
      (korma.core/exec-raw   [sql-to-create-applications-table []]   [])
      nil)))



