do
$$
declare
_f_user int = 63; -- это идентификатор пользователя из таблицы core.pd_users: 63 - Милютин, 59 - Телегин
_d_date timestamptz = now();
_n_longitude numeric(19, 6) = 47.2279506;
_n_latitude numeric(19, 6) = 56.1484872;
_c_network_status text = 'online';
begin
insert into core.ad_tracking (fn_user, d_date, n_longitude, n_latitude, c_network_status)
values(_f_user, _d_date, _n_longitude, _n_latitude, _c_network_status);
end;
$$
language plpgsql;