<?php

namespace Resources\Einsätze;

require_once("resources/Einsätze/Art.php");
require_once("links/Anwesenheiten_Einsaetze.php");

class Einsatz extends \Resources\Handler
{
	protected $names = ["table" => "Einsätze", "ident" => "Einsätze", "short" => "e"];
	protected $has = ["uuid" => false, "sha256" => false];
	protected $definitions = [
		"fields" => [
			"Alarmierungszeit" => ["default" => "0000-00-00 00:00:00", "type" => "s"],
			"Einsatzende" => ["default" => "0000-00-00 00:00:00", "type" => "s"],
			"Adresse" => ["default" => "", "type" => "s"],
			"Zusammenfassung" => ["default" => "", "type" => "s"],
			"Einsatzleiter" => ["default" => "", "type" => "s"],
			"Überprüft" => ["default" => 0, "type" => "i"],
		],
		"keys" => [
			"Art" => ["resourceClass" => "Einsätze\\Art", "nullable" => true, "type" => "s"],
		],
		"links" => [
			"Anwesenheiten" => ["linkClass" => "Anwesenheiten_Einsätze"],
		]
	];
}