This repository has been archived on 2023-12-29. You can view files and clone it, but cannot push or open issues or pull requests.
dogstats/web/models/Run.model.php

19 lines
559 B
PHP
Raw Normal View History

2023-10-30 22:20:13 +01:00
<?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'],
2023-10-31 15:32:29 +01:00
'results' => ['type' => 'array','default'=>[]],
2023-10-30 22:20:13 +01:00
);
}