run hinzufügen geht
All checks were successful
Build and push / Pulling repo on server (push) Successful in 3s
All checks were successful
Build and push / Pulling repo on server (push) Successful in 3s
This commit is contained in:
17
web/models/Run.model.php
Normal file
17
web/models/Run.model.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
class Run extends Model
|
||||
{
|
||||
protected $dbTable = "run";
|
||||
protected $dbFields = array(
|
||||
'tournament' => ['type' => 'text', 'required'],
|
||||
'name' => ['type' => 'text', 'required'],
|
||||
'category' => ['type' => 'text'],
|
||||
'length' => ['type' => 'int'], //in meters
|
||||
'time_standard' => ['type' => 'int'], // in sek
|
||||
'time_max' => ['type' => 'int'], // in sek
|
||||
'referee' => ['type' => 'text'],
|
||||
'photo' => ['type' => 'text'],
|
||||
);
|
||||
|
||||
}
|
@ -13,6 +13,7 @@ class Tournament extends Model
|
||||
'logo' => ['type' => 'text', 'default' => 'https://pictshare.net/prrnrk.jpg'],
|
||||
'admins' => ['type'=> 'array', 'default'=>[]],
|
||||
'members' => ['type'=> 'array', 'default'=>[]],
|
||||
'runs' => ['type'=> 'array', 'default'=>[]],
|
||||
);
|
||||
|
||||
function joinUser($tournament = false)
|
||||
|
Reference in New Issue
Block a user