<commit_before>
Sequel.migration do

  up do

    create_table :flor_messages do

      primary_key :id, type: Bignum
      String :domain, null: false
      String :exid, null: false
      String :point, null: false # 'execute', 'task', 'receive', 'schedule', ...
      File :content # JSON
      String :status, null: false
      String :ctime
      String :mtime

      index :exid
    end

    create_table :flor_executions do

      primary_key :id, type: Bignum
      String :domain, null: false
      String :exid, null: false
      File :content # JSON
      String :status, null: false # 'active' or something else like 'archived'
      String :ctime
      String :mtime

      index :exid
    end

    create_table :flor_timers do

      primary_key :id, type: Bignum
      String :domain, null: false
      String :exid, null: false
      String :nid, null: false
      String :type, null: false # 'at', 'in', 'cron', 'every', ...
      String :schedule, null: false # '20141128.103239' or '00 23 * * *'
      String :ntime # next time
      File :content # JSON msg to trigger
      Bignum :count, null: false
      String :status, null: false
      String :ctime
      String :mtime

      index :exid
      index [ :exid, :nid ]
    end

    create_table :flor_traps do

      primary_key :id, type: Bignum
      String :domain, null: false
      String :exid, null: false
      String :onid, null: false
      String :nid, null: false
      #
      TrueClass :tconsumed, null: false, default: false
      String :trange, null: false
      String :tpoints, null: true
      String :ttags, null: true
      String :theats, null: true
      String :theaps, null: true
      #
      File :content # JSON msg to trigger
      #
      String :status, null: false
      String :ctime
      String :mtime

      index :exid
      index [ :exid, :nid ]
    end

    create_table :flor_traces do

      primary_key :id, type: Bignum
      String :domain, null: false
      String :exid, null: false
      String :nid, null: true
      String :tracer, null: false # 'executor', 'trace'
      String :text, null: false # 'blah blah blah'
      String :tstamp
<commit_msg>Revert "Use Bignum instead of :Bignum in migrations/"<commit_after>
Sequel.migration do

  up do

    create_table :flor_messages do

      primary_key :id, type: :Bignum
      String :domain, null: false
      String :exid, null: false
      String :point, null: false # 'execute', 'task', 'receive', 'schedule', ...
      File :content # JSON
      String :status, null: false
      String :ctime
      String :mtime

      index :exid
    end

    create_table :flor_executions do

      primary_key :id, type: :Bignum
      String :domain, null: false
      String :exid, null: false
      File :content # JSON
      String :status, null: false # 'active' or something else like 'archived'
      String :ctime
      String :mtime

      index :exid
    end

    create_table :flor_timers do

      primary_key :id, type: :Bignum
      String :domain, null: false
      String :exid, null: false
      String :nid, null: false
      String :type, null: false # 'at', 'in', 'cron', 'every', ...
      String :schedule, null: false # '20141128.103239' or '00 23 * * *'
      String :ntime # next time
      File :content # JSON msg to trigger
      Bignum :count, null: false
      String :status, null: false
      String :ctime
      String :mtime

      index :exid
      index [ :exid, :nid ]
    end

    create_table :flor_traps do

      primary_key :id, type: :Bignum
      String :domain, null: false
      String :exid, null: false
      String :onid, null: false
      String :nid, null: false
      #
      TrueClass :tconsumed, null: false, default: false
      String :trange, null: false
      String :tpoints, null: true
      String :ttags, null: true
      String :theats, null: true
      String :theaps, null: true
      #
      File :content # JSON msg to trigger
      #
      String :status, null: false
      String :ctime
      String :mtime

      index :exid
      index [ :exid, :nid ]
    end

    create_table :flor_traces do

      primary_key :id, type: :Bignum
      String :domain, null: false
      String :exid, null: false
      String :nid, null: true
      String :tracer, null: false # 'executor', 'trace'
      String :text, null: false # 'blah blah blah'
      String :tstamp

{'fraction_non_alphanumeric': 0.09628955155929889, 'fraction_numerical': 0.008194855451855224, 'mean_word_length': 2.233259749816041, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3378879', 'n_tokens_mistral': 1438, 'n_tokens_neox': 1380, 'n_words': 493}