<?php

namespace Resources\Struktur;

require_once("resources/Struktur/Abteilung.php");
require_once("links/Personal_Gruppen.php");

class Gruppe extends \Resources\Handler
{
	protected $names = ["table" => "Struktur_Gruppen", "ident" => "Gruppen", "short" => "sg"];
	protected $has = ["uuid" => false, "sha256" => false];
	protected $definitions = [
		"fields" => [
			"Kürzel" => ["default" => "", "type" => "s"],
			"Name" => ["default" => "", "type" => "s"],
		],
		"keys" => [
			"Abteilung" => ["resourceClass" => "Struktur\\Abteilung", "nullable" => false, "type" => "s"],
			"ElternGruppe" => ["resourceClass" => "Struktur\\Gruppe", "nullable" => true, "type" => "s"],
		],
		"links" => [
			"Personal" => ["linkClass" => "Personal_Gruppen"],
		]
	];
}