summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'shared/classes/download.php')
-rw-r--r--shared/classes/download.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/shared/classes/download.php b/shared/classes/download.php
new file mode 100644
index 0000000..f255f1c
--- /dev/null
+++ b/shared/classes/download.php
@@ -0,0 +1,29 @@
+<?php
+class sql_download extends sql_row_obj {
+ protected $table='downloads', $primary_key=array('build', 'user', 'time'), $columns=array(
+ 'build' => array (
+ 'type' => 'CHAR',
+ 'length' => 6,
+ 'not_null' => true,
+ 'default' => '',
+ 'refers_to' => 'builds.id'
+ ),
+ 'user' => array (
+ 'type' => 'INT',
+ 'length' => 10,
+ 'unsigned' => true,
+ 'not_null' => true,
+ 'default' => 0,
+ 'refers_to' => 'users.id'
+ ),
+ 'time' => array (
+ 'type' => 'INT',
+ 'length' => 10,
+ 'unsigned' => true,
+ 'not_null' => true,
+ 'default' => 0
+ )
+
+ );
+}
+?>