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/Tournament.model.php
Chris 135958c9f0
All checks were successful
Build and push / Pulling repo on server (push) Successful in 3s
404 seiten auf unterseiten gehen jetzt, icons werden jetzt korrekt bei menüs angezeigt, die submenüs haben
2023-10-26 20:26:28 +02:00

18 lines
612 B
PHP

<?php
class Tournament extends Model
{
protected $dbTable = "tournaments";
protected $dbFields = array(
'registered' => ['type' => 'datetime', 'required', 'unique', 'autoValMethod' => 'getDateTime'],
'name' => ['type' => 'text', 'required'],
'date' => ['type' => 'datetime','required'],
'duration' => ['type' => 'int'], //in days
'referee' => ['type' => 'text'],
'text' => ['type' => 'text'],
'url' => ['type' => 'text'], //if there is one
'logo' => ['type' => 'text', 'default' => 'https://pictshare.net/prrnrk.jpg']
);
}