public function getQueryStatements($table){
		// field declaration
		$query = array();
		array_push($query, $this->name . ' ' . $this->type);
		if($this->nullable == false)
			array_push($query, ' NOT NULL');
		else array_push($query, ' NULL');
		if(isset($this->default_value)){
			$value = $this->default_value;
			if($this->type == 'BOOL')
				$value = ($this->default_value)?1:0;
			array_push($query, " DEFAULT '$value'");
		}
		if($this->auto_increments && $this->type == 'INT')
			array_push($query, ' AUTO_INCREMENT');
		// constraints
		if($this->primary)
			array_push($query, ",\n\t" . 'CONSTRAINT PK_' . $this->name . ' PRIMARY KEY (' . $this->name . ')');
		if($this->unique)
			array_push($query, ",\n\t" . 'CONSTRAINT UC_' . $this->name . ' UNIQUE KEY (' . $this->name . ')');
		if($this->foreign)
			array_push($query, ",\n\tCONSTRAINT FK_$table" . $this->foreign_class . '_' . $this->name .
				' FOREIGN KEY (' . $this->name . ") REFERENCES " . $this->foreign_class . " (" . $this->foreign_property . ')');

		return implode($query);
	}