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;
	}
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;
	}
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 ; }
Generate a sequence

@param string $column
@param string $type
@param int|null $tenant
@param int|null $module
@return int
Generate a sequence