404 seiten auf unterseiten gehen jetzt, icons werden jetzt korrekt bei menüs angezeigt, die submenüs haben
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:
@ -4,7 +4,6 @@ class Dog extends Model
|
||||
{
|
||||
protected $dbTable = "dogs";
|
||||
protected $dbFields = array(
|
||||
'uuid' => ['type' => 'text', 'required', 'unique', 'autoValMethod' => 'gen_ulid'],
|
||||
'registered' => ['type' => 'datetime', 'required', 'unique', 'autoValMethod' => 'getDateTime'],
|
||||
'name' => ['type' => 'text'],
|
||||
'kennel_name' => ['type' => 'text'],
|
||||
|
17
web/models/Tournament.model.php
Normal file
17
web/models/Tournament.model.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?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']
|
||||
);
|
||||
|
||||
}
|
@ -3,7 +3,6 @@
|
||||
class User extends Model {
|
||||
protected $dbTable = "users";
|
||||
protected $dbFields = Array (
|
||||
'uuid' => ['type'=>'text','required','unique','autoValMethod'=>'gen_ulid'],
|
||||
'password' => ['type'=>'text'],
|
||||
'registered' => ['type'=>'datetime','required','unique','autoValMethod'=>'getDateTime'],
|
||||
'email' => ['type'=>'email','unique'],
|
||||
@ -13,6 +12,7 @@ class User extends Model {
|
||||
'token' => ['type'=>'text','required','unique','autoValMethod'=>'uuid4'],
|
||||
'timezone' => ['type'=>'int'],
|
||||
'dogs' => ['type'=> 'array','default'=>[]],
|
||||
'tournaments' => ['type'=> 'array','default'=>[]],
|
||||
'active' => ['type'=>'int','default'=>0]
|
||||
);
|
||||
protected $hidden = ['password','token'];
|
||||
|
Reference in New Issue
Block a user