<?php

namespace Resources\Spinde;

require_once("resources/Spinde/Raum.php");
require_once("resources/Personal/Personal.php");
require_once("links/Spinde_Zuordnung.php");

class Spind extends \Resources\Handler
{
	protected $names = ["table" => "Spinde", "ident" => "Spinde", "short" => "sp"];
	protected $has = ["uuid" => true, "sha256" => false];
	protected $definitions = [
		"fields" => [
			"Bezeichnung" => ["default" => "", "type" => "s"],
			"Links" => ["default" => 0, "type" => "i"],
			"Oben" => ["default" => 0, "type" => "i"],
			"Höhe" => ["default" => 0, "type" => "i"],
			"Breite" => ["default" => 0, "type" => "i"],
			"Orientation" => ["default" => 0, "type" => "i"],
		],
		"keys" => [
			"Raum" => ["resourceClass" => "Spinde\\Raum", "nullable" => false, "type" => "s"],
			"Besitzer" => ["resourceClass" => "Personal\\Personal", "nullable" => true, "type" => "s"],
		],
		"links" => [
			"Zuordnung" => ["linkClass" => "Spinde_Zuordnung"],
		]
	];
}