/* ios flexbox tricks Could be resolved in two ways: 1). shorthand: flex: 1 1; 2). -webkit-flex: 1 1 100%; */
/* ¿fecha last? */

    f (fid,...)
    u(uid,...) /* uidfbid */
    lhf (fid,v) /* ¿? */
    lhu(uid,v) /* ¿? */
    lhuf(uid,fid,v)
    lhf(uid,fuid,estatus,lastuser,dated) /* vs sin fuid */

/*  */
    UPDATE /*l+1*/ lhf SET t=t+1, l=l+1, lp=l/t, hp=h/t, f=now() WHERE fid=?;

    UPDATE /*h+1*/ lhf SET t=t+1, h=h+1, hp=t/l, lp=l/t f=now() WHERE fid=?;

    UPDATE /*d+1*/ lhf SET t=t+1, d=d+1, lp=l/t, hp=h/t f=now() WHERE fid=?;


/*  */
    UPDATE /*h2l*/ lhf SET l=l+1, h=IF(h<1,0,h-1),  lp=l/t, hp=h/t, f=now() WHERE fid=?;

    UPDATE /*l2h*/ lhf SET h=h+1, l=IF(l<1,0,l-1),  lp=l/t, hp=h/t, f=now() WHERE fid=?;



    /*  h2d, l2d */
    /*  d2l, d2h */

/*  */
    UPDATE /*l-1*/ lhf SET t=IF(t<1,0,t-1), l=IF(l<1,0,l-1), lp=IF(t<1,0,l/t), hp=IF(t<1,0,h/t) WHERE fid=?;

    UPDATE /*h-1*/ lhf SET t=IF(t<1,0,t-1), h=IF(h<1,0,h-1), lp=IF(t<1,0,l/t), hp=IF(t<1,0,h/t) WHERE fid=?;

    UPDATE /*d-1*/ lhf SET t=IF(t<1,0,t-1), d=IF(d<1,0,d-1), lp=IF(t<1,0,l/t), hp=IF(t<1,0,h/t) WHERE fid=?;


/* all with */
    INSERT INTO lhuf(uid,fid,v) VALUES(uid,fid,v) ON DUPLICATE KEY UPDATE v=VALUES(v);
     /* lhu(uid,v) ? */

/* lhf */


