summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'shared/classes/commandlog_entry.php')
-rw-r--r--shared/classes/commandlog_entry.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/shared/classes/commandlog_entry.php b/shared/classes/commandlog_entry.php
new file mode 100644
index 0000000..5f78aab
--- /dev/null
+++ b/shared/classes/commandlog_entry.php
@@ -0,0 +1,37 @@
+<?php
+class sql_commandlog_entry extends sql_row_obj {
+ protected $table='commandlogs', $columns=array(
+ 'task' => array (
+ 'type' => 'INT',
+ 'length' => 10,
+ 'unsigned' => true,
+ 'not_null' => true,
+ 'default' => 0
+ ),
+ 'order' => array (
+ 'type' => 'INT',
+ 'length' => 10,
+ 'unsigned' => true,
+ 'not_null' => true,
+ 'default' => 0
+ ),
+ 'timestamp' => array (
+ 'type' => 'INT',
+ 'length' => 10,
+ 'unsigned' => true,
+ 'not_null' => true,
+ 'default' => 0
+ ),
+ 'stream' => array (
+ 'type' => 'ENUM',
+ 'length' => '\'stdout\',\'stderr\',\'system\'',
+ 'not_null' => true
+ ),
+ 'text' => array (
+ 'type' => 'TEXT',
+ 'not_null' => true
+ )
+
+ );
+}
+?>