summaryrefslogtreecommitdiff
blob: f255f1c9c19a32a3ba02597aff29e7de9c66fd33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
		)

	);
}
?>