fast kann man schon ergebnisse eintragne
All checks were successful
Build and push / Pulling repo on server (push) Successful in 2s
All checks were successful
Build and push / Pulling repo on server (push) Successful in 2s
This commit is contained in:
27
web/models/Result.model.php
Normal file
27
web/models/Result.model.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
class Result extends Model
|
||||
{
|
||||
protected $dbTable = "result";
|
||||
protected $dbFields = array(
|
||||
'tournament' => ['type' => 'text', 'required'], //tournament ID
|
||||
'run' => ['type' => 'text', 'required'], //run ID
|
||||
'user' => ['type' => 'text', 'required'], //user ID
|
||||
|
||||
'disqualified' => ['type' => 'bool'],
|
||||
'refusals' => ['type' => 'int','default'=>0],
|
||||
'errors' => ['type' => 'int','default'=>0],
|
||||
'timefaults' => ['type' => 'int','default'=>0],
|
||||
'runtime' => ['type' => 'int','default'=>0],
|
||||
'penalties' => ['type' => 'int','default'=>0],
|
||||
'rating' => ['type' => 'text'],
|
||||
'points' => ['type' => 'int','default'=>0],
|
||||
'speed' => ['type' => 'int','default'=>0], //in m/sec
|
||||
'ranking' => ['type' => 'int','default'=>0],
|
||||
'photos' => ['type' => 'array','default'=>[]],
|
||||
'videos' => ['type' => 'array','default'=>[]],
|
||||
'memo' => ['type' => 'text'],
|
||||
|
||||
);
|
||||
|
||||
}
|
Reference in New Issue
Block a user