<?php

namespace SHServ\Entities;

class Script extends \SHServ\Middleware\Entity {

	use \SHServ\Helpers\MetaImplementation;

	public static $table_name = "scripts";
	protected static $fields = [
		"id", "uniq_name", "type", "state", 
		"create_at", "update_at"
	];

	public function __construct(Int $id, Array $data = []){
		parent::__construct(
			self::$table_name,
			$id,
			$data
		);
	}

	public function remove() {
		return $this -> remove_entity();
	}
}

