<?php

namespace Shm\ShmSocial;

use Shm\Collection\Collection;
use Shm\Shm;
use Shm\ShmAuth\Auth;
use Shm\ShmChat\ShmChat;
use Shm\ShmTypes\StructureType;

class ShmSocials extends Collection
{



    public function schema(): ?StructureType
    {
        $schema = Shm::structure([

            "id" => Shm::string(),
            "profile_id" => Shm::mixed(),
            "type" => Shm::string(),
            "soc" => Shm::string(),
            "mail" => Shm::string(),
            "name" => Shm::string(),
            "surname" => Shm::string(),
            "photo" => Shm::string(),
            "gender" => Shm::string(),
            'groups' => Shm::structure([
                "*" => Shm::mixed()
            ]),



            "owner" => Shm::ID()->hide(),
            "ownerCollection" => Shm::string()->hide(),


        ]);


        return $schema;
    }
}
