vzQueue:
  tableName: vz_queue
  actAs:
    Timestampable:
  columns:
    status:
      type: integer(1)
     # 0 -> idle
     # 1 -> started
     # 2 -> running
     # 3 -> stopped
     # 4 -> error
    priority: 
      type: integer(1)
     # 0 -> low
     # 1 -> medium
     # 2 -> high
     # 3 -> very high <=> critical
    execute_at: timestamp
    is_recursive:
      type: boolean
      default: false
    repeat_interval: #in seconds
      type: integer
  relations:
    Job:
      class: vzJobQueue
      local: id
      foreign: queue_id
      type: one
      onDelete: SET NULL
    
vzJobQueue:
  columns:
    name: string(255)
    command: string(255)
    parameters: clob
    queue_id: integer
  relations:
    Queue:
      class: vzQueue
      local: queue_id
      foreign: id
      type: one
      onDelete: CASCADE