public function sequence(string $column, string $type = 'nextval', $tenant = null, $module = null) : int {
		// add tenant
		if (empty($tenant) && $this->tenant) {
			$tenant = \Tenant::id();
		}
		$temp = $this->db_object->sequence($this->full_table_name . '_' . $column . '_seq', $type, $tenant, $module);
		return $temp['rows'][0]['counter'] ?? 0;
	}