code: func CreateDeviceActivation(db sqlx.Queryer, da *DeviceActivation) error {
  	da.CreatedAt = time.Now()
  
  	err := sqlx.Get(db, &da.ID, `
  		insert into device_activation (
  			created_at,
  			dev_eui,
  			join_eui,
  			dev_addr,
  			s_nwk_s_int_key,
  			f_nwk_s_int_key,
  			nwk_s_enc_key,
  			dev_nonce,
  			join_req_type
  		) values ($1, $2, $3, $4, $5, $6, $7, $8, $9)
  		returning id`,
  		da.CreatedAt,
  		da.DevEUI[:],
  		da.JoinEUI[:],
  		da.DevAddr[:],
  		da.SNwkSIntKey[:],
  		da.FNwkSIntKey[:],
  		da.NwkSEncKey[:],
  		da.DevNonce,
  		da.JoinReqType,
  	)
  	if err != nil {
  		return handlePSQLError(err, "insert error")
  	}
  
  	log.WithFields(log.Fields{
  		"id":      da.ID,
  		"dev_eui": da.DevEUI,
  	}).Info("device-activation created")
  
  	return nil
  }
docs: // CreateDeviceActivation creates the given device-activation.