<?php

namespace Lucent\Schema;

use Lucent\Primitive\Collection;

class CollectionSchema implements Schema
{
    public Type $type = Type::COLLECTION;

    /**
     * @param Collection<FieldInterface> $fields
     * @param array<string> $visible
     */
    function __construct(
        public string     $name,
        public string     $label,
        public array      $visible,
        public array      $groups,
        public Collection $fields,
        public bool       $isEntry = false,
        public string     $color = "",
        public string     $sortBy = "-_sys.updatedAt",
        public string     $titleTemplate = "",
        public int        $revisions = 0,
        public array      $read = [],
        public array      $write = [],
    )
    {
    }

}
